Example #1
0
 def _tag_flat(self):
     # Ideally, we would want 'IMAGE' to be set by the 'IMAGE' tag.
     # But since OBSTYPE is being used for both, not clear how that
     # can be done right now.
     obstype = self.phu.get('OBSTYPE', '')
     if 'FLAT' in obstype:
         return astrodata.TagSet(['FLAT', 'CAL', 'IMAGE'])
Example #2
0
 def _tag_instrument(self):
     # QUESTIONS:
     # 1) is SAMI always used with the SAM AO?
     # 2) is SAMI used only at one telescopes or multiple ones?
     # ANSWER:
     # 1) SAMI is always used withing SAM but not always with AO.
     # 2) SAMI and SAM are only used at SOAR Telescope.
     return astrodata.TagSet(['SAMI', 'SAM'])
Example #3
0
    def _tag_acquisition(self):
        # Ideally, we would want 'IMAGE' to be set by the 'IMAGE' tag.
        # But since OBSTYPE is being used for both, not clear how that
        # can be done right now.
        filename = self.phu.get('FILENAME', '')
        notes = self.phu.get('NOTES', '')

        if re.search('acq.[0-9]+', filename) or re.search('/acq/i', notes):
            return astrodata.TagSet(['ACQUISITION', 'IMAGE'])
Example #4
0
 def _tag_bias(self):
     if self.phu.get('OBSTYPE') == 'ZERO':
         return astrodata.TagSet(['BIAS', 'CAL'], blocks=['IMAGE', 'FABRY'])
Example #5
0
 def _tag_image(self):
     # this one will need something like "if not FABRY keyword", I think.
     if self.phu.get('OBSTYPE') == 'OBJECT':
         return astrodata.TagSet(['IMAGE'])
Example #6
0
 def _tag_domeflat(self):
     if self.phu.get('OBSTYPE') == 'DFLAT':
         return astrodata.TagSet(['DOME'])
Example #7
0
 def _tag_twilight(self):
     if self.phu.get('OBSTYPE') == 'SFLAT':
         return astrodata.TagSet(['TWILIGHT'])
Example #8
0
 def _tag_instrument(self):
     return astrodata.TagSet(['DUMMY'])
Example #9
0
 def _type_observatory(self):
     return astrodata.TagSet(['SOAR'])