Source code for sofia_redux.scan.info.telescope

# Licensed under a 3-clause BSD style license - see LICENSE.rst

from sofia_redux.scan.info.base import InfoBase
from sofia_redux.scan.coordinate_systems.epoch.epoch import J2000

__all__ = ['TelescopeInfo']


[docs] class TelescopeInfo(InfoBase): def __init__(self): """ Initialize the telescope information. Contains information on the telescope, telescope coordinate system epoch, and whether it is tracking the source coordinates. """ super().__init__() self.is_tracking = False self.epoch = J2000 self.telescope = None @property def log_id(self): """ Return the string log ID for the info. The log ID is used to extract certain information from table data. Returns ------- str """ return 'tel'
[docs] @staticmethod def get_telescope_name(): """ Return the telescope name. Returns ------- str """ return 'UNKNOWN'
[docs] def edit_image_header(self, header, scans=None): """ Edit a FITS image header with the telescope information. Parameters ---------- header : astropy.io.fits.Header The header to edit. scans : Scan or list (Scan), optional Optional scans used for editing. Returns ------- None """ header['TELESCOP'] = self.get_telescope_name(), 'Telescope name.'