HawcPlusAstrometryInfo

class sofia_redux.scan.custom.hawc_plus.info.astrometry.HawcPlusAstrometryInfo[source]

Bases: SofiaAstrometryInfo

Initialize astrometry information for HAWC+ observations.

An extension of the SOFIA astrometry information with additional handling for nonsidereal coordinates.

Methods Summary

apply_configuration()

Update astrometry information with the FITS header configuration data.

guess_reference_coordinates([header, telescope])

Guess the reference coordinates of a scan.

is_requested_valid([header])

Check whether the requested OBSRA/DEC values in the header are valid.

Methods Documentation

apply_configuration()[source]

Update astrometry information with the FITS header configuration data.

Additionally populates the object coordinates from the OBJRA and OBJDEC keywords in the configuration the EQUINOX epoch from the FITS header. Non-sidereal observations may be flagged using the NONSIDE keyword or by setting rtoc=True in the configuration.

Returns:
None
guess_reference_coordinates(header=None, telescope=None)[source]

Guess the reference coordinates of a scan.

Parameters:
headerastropy.io.fits.Header, optional

The header to read. The default is to read stored OBSRA/OBSDEC values in the configuration.

telescopeSofiaTelescopeInfo, optional

A telescope object to extract the boresight equatorial coordinates if all other avenues to the coordinates failed.

Returns:
coordinatesEquatorialCoordinates
is_requested_valid(header=None)[source]

Check whether the requested OBSRA/DEC values in the header are valid.

Parameters:
headerastropy.io.fits.header.Header, optional

The header to read. If not supplied, the FITS header for the scan will be read instead.

Returns:
validbool