huntsman.drp.utils.header

Functions

header_to_altaz(header[, get_used_cards])

Get the alt az of the observation from the header. :param header: The FITS header. :type header: abc.Mapping :param get_used_cards: If True, return the keys used to obtain alt / az. This is used e.g. by LSST translator classes. Default: False. :type get_used_cards: bool, optional.

header_to_location(header[, get_used_cards])

Get the location object from the FITS header. :param header: The FITS header. :type header: abc.Mapping :param get_used_cards: If True, return the keys used to obtain alt / az. This is used e.g. by LSST translator classes. Default: False. :type get_used_cards: bool, optional.

header_to_observation_type(header[, ...])

Return the type of observation (e.g. science, bias, dark, flat). :param header: The FITS header. :type header: abc.Mapping :param get_used_cards: If True, return the keys used to obtain alt / az. This is used e.g. by LSST translator classes. Default: False. :type get_used_cards: bool, optional.

header_to_radec(header[, get_used_cards])

Get the ra dec of the field centre from the FITS header. If a celestial WCS is present, will try and use that first. If not, will use approximate telescope pointing. If a telescope pointing was not captured in the header, return None. :param header: The FITS header. :type header: abc.Mapping :param get_used_cards: If True, return the keys used to obtain alt / az. This is used e.g. by LSST translator classes. Default: False. :type get_used_cards: bool, optional.