read_yx0#
- lsst.images.fits.read_yx0(header)#
Recover the logical origin of an array from its FITS header.
- Parameters:
header (
Header) – Header to read from. Not modified.- Returns:
Logical coordinate of the first pixel, ordered
(y, x).- Return type:
- Raises:
ValueError – Raised if the header records no origin via either the
LTV1/LTV2cards (written bylsst.afw.image) or a linear offset WCS (written byadd_offset_wcs).
Notes
The
LTV1/LTV2convention is preferred when present, falling back to theAoffset WCS otherwise.