SofiaAstrometryInfo¶
- class sofia_redux.scan.custom.sofia.info.astrometry.SofiaAstrometryInfo[source]¶
Bases:
AstrometryInfo
Initialize astrometry information for SOFIA observations.
The SOFIA astrometry information should be relevant to all instruments that may be mounted on SOFIA. All equatorial observations use the J2000 equinox. Additionally, SOFIA is considered a ground-based telescope since it still encounters atmospheric effects.
Attributes Summary
Methods Summary
Update astrometry information with the FITS header configuration data.
coordinate_valid
(coordinate)Check whether a coordinate is valid.
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.
Parse and apply coordinate related keywords from the FITS header.
Parse and apply time related keywords from the FITS header.
validate_astrometry
(scan)Validate astrometry information from a scan.
Attributes Documentation
- default_fits_date = '1970-01-01T00:00:00.0'¶
Methods Documentation
- apply_configuration()[source]¶
Update astrometry information with the FITS header configuration data.
- Returns:
- None
- classmethod coordinate_valid(coordinate)[source]¶
Check whether a coordinate is valid.
- Parameters:
- coordinateCoordinate2D
- Returns:
- validbool
- 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
- parse_astrometry()[source]¶
Parse and apply coordinate related keywords from the FITS header.
The following FITS header keywords are used:
KEY DESCRIPTION -------- ----------- EQUINOX The equinox of the observation (year) OBSRA The right-ascension of the observed source (hours) OBSDEC The declination of the observed source (degrees)
The modified Julian date (MJD) is calculated, and precessions are initialized relative to the J2000 equinox.
- Returns:
- None
- parse_time()[source]¶
Parse and apply time related keywords from the FITS header.
The following FITS header keywords are used:
KEY DESCRIPTION -------- ----------- DATE Determines the file date (ISOT format, UTC scale) DATE-OBS The exposure start time (ISOT format, UTC scale) UTCSTART The UTC of the exposure start (hh:mm:ss.### UTC format) UTCEND The UTC of the exposure end (hh:mm:ss.### UTC format)
The modified Julian date (MJD) is calculated, and precessions are initialized relative to the J2000 equinox.
- Returns:
- None