Constructing a WCS from camera geometry

dm-dev
Tags: #<Tag:0x00007fd8912579e0>

(Russell Owen) #1

As of DM-14932 it is now possible to construct a celestial WCS from camera geometry and the telescope pointing. The new function is

makeSkyWcs(pixelsToFieldAngle, orientation, flipX, boresight, projection="TAN")

The resulting WCS will have a CRVAL equal to boresight and a CRPIX at the center of the focal plane (thus well off most CCDs in a mosaic camera). The orientation is of the focal plane, not detector pixels, which has the benefit that you can use the same value of orientation for all detectors, even if some detectors are rotated with respect to others (e.g. HSC). See the source code documentation for details.