scopesim.optics.image_plane_utils.calc_footprint#
- scopesim.optics.image_plane_utils.calc_footprint(header, wcs_suffix='', new_unit: str = None)#
Return the sky/detector positions [deg/mm] of the corners of a header WCS.
TODO: The rest of this docstring is outdated, please update!
The positions returned correspond to the corners of the header’s image array, in this order:
(ra, dec) = (0,0), (w, 0), (w, h), (0, h) (x, y) = (0,0), (w, 0), (w, h), (0, h)
where
w,hare equal to NAXIS1 and NAXIS2 from the header.- Parameters:
header (fits.Header)
wcs_suffix (str) – Letter suffix for the WCS keywords, e.g. CDELT1D for image-plane coords
- Returns:
x, y – [deg or mm] x are the coordinates for pixels [0, w, w, 0] [deg or mm] y are the coordinates for pixels [0, 0, h, h]
- Return type:
arrays of floats