coordinates_from_header

glue.core.coordinates.coordinates_from_header(header, hdulist=None)[source]

Convert a FITS header into a glue Coordinates object.

Parameters
headerastropy.io.fits.Header

Header to convert

hdulistastropy.io.fits.HDUList, optional

The full HDUList is required when header keywords point to a ‘Distortion Paper’ lookup table stored in a different extension.

Returns
coordinatesCoordinates