diff --git a/soar_instruments/goodman/adclass.py b/soar_instruments/goodman/adclass.py index 0e34a1b..2fe5159 100644 --- a/soar_instruments/goodman/adclass.py +++ b/soar_instruments/goodman/adclass.py @@ -40,12 +40,13 @@ def _tag_blue(self): @astro_data_tag def _tag_image(self): - if self.phu.get('CAM_ANG') == 0 and self.phu.get('WAVMOD') == 'Imaging': + print(self.phu.get('WAVMODE')) + if self.phu.get('CAM_TARG') == 0 and self.phu.get('WAVMODE') == 'Imaging': return TagSet(['IMAGE']) @astro_data_tag def _tag_spect(self): - if self.phu.get('CAM_ANG') != 0 and self.phu.get('WAVMOD') != 'Imaging': + if self.phu.get('CAM_TARG') != 0 and self.phu.get('WAVMODE') != 'Imaging': return TagSet(['SPECT']) diff --git a/soardr/goodman/primitives_goodman.py b/soardr/goodman/primitives_goodman.py index 97b9040..a9c35ac 100644 --- a/soardr/goodman/primitives_goodman.py +++ b/soardr/goodman/primitives_goodman.py @@ -30,3 +30,10 @@ def gudayMate(self, *args, **kwargs): log.stdinfo("Coming to you from {}.".format(self.myself())) return + + def goodmanPrimitive(self, *args, **kwargs): + log = self.log + log.stdinfo(gt.log_message(" This is a ", self.myself())) + for ad in self.adinputs: + log.stdinfo("The file name is: {}".format(ad.filename)) + log.stdinfo("Tags are: {}".format(ad.tags)) diff --git a/soardr/goodman/recipes/qa/recipes_IMAGE.py b/soardr/goodman/recipes/qa/recipes_IMAGE.py new file mode 100644 index 0000000..921a836 --- /dev/null +++ b/soardr/goodman/recipes/qa/recipes_IMAGE.py @@ -0,0 +1,14 @@ +""" +Test recipe for GOODMAN IMAGE data. + +""" + +recipe_tags = set(['GOODMAN', 'IMAGE']) + +def grecipe(p): + p.helloWorld() + p.gudayMate() + p.goodmanPrimitive() + return + +default = grecipe diff --git a/soardr/goodman/recipes/qa/recipes_SPECT.py b/soardr/goodman/recipes/qa/recipes_SPECT.py index e4d16fe..a13ef72 100644 --- a/soardr/goodman/recipes/qa/recipes_SPECT.py +++ b/soardr/goodman/recipes/qa/recipes_SPECT.py @@ -8,6 +8,7 @@ def grecipe(p): p.helloWorld() p.gudayMate() + p.goodmanPrimitive() return default = grecipe