#
# Gemini Observatory
#
# Dragons
# gemini_instruments
# skycam.adclass.py
# ------------------------------------------------------------------------------
import datetime
import dateutil.parser
from astrodata import astro_data_tag
from astrodata import astro_data_descriptor
from astrodata import returns_list
from astrodata import TagSet
from astrodata.fits import FitsLoader
from astrodata.fits import FitsProvider
from ..gemini import AstroDataGemini
# ------------------------------------------------------------------------------
[docs]class AstroDataSkyCam(AstroDataGemini):
@staticmethod
def _matches_data(source):
# remove "s because they added them, but this will also work if the fix it
match = source[0].header.get('TELESCOP', '').strip('"') == 'GS_ALLSKYCAMERA'
return match
@astro_data_tag
def _tag_instrument(self):
return TagSet(['GS_ALLSKYCAMERA'])
@astro_data_tag
def _tag_site(self):
return TagSet(['SOUTH'])
[docs] @astro_data_descriptor
def instrument(self):
return self.phu['TELESCOP'].strip('"')
[docs] @astro_data_descriptor
def object(self):
return 'ZENITH'