opencadc / gem2caom2

Application to augment CAOM2 Observations from Gemini telescope observation.
GNU Affero General Public License v3.0
0 stars 3 forks source link

Add Instrument.keywords value for GMOS-N/S #12

Open dbohlender opened 4 years ago

dbohlender commented 4 years ago

Currently there is no CAOM2 metadata that enables a user to distinguish different spectroscopic modes of GMOS-N/S data. e.g. long-slit vs. IFU vs. MOS (multi-object spectroscopy).

To enable this with at least a TAP query it would be useful to modify the gem2caom2 code to add an Instrument.keywords value for GMOS-N/S spectra. The instrument mode can be identified by the value of the MASKNAME FITS header keyword or the jsonsummary's focal_plane_mask value:

Assuming that Plane.dataProductType has already been determined then:

If Plane. dataProductType = spectrum: If MASKNAME/focal_plane_mask contains string 'arcsec' then Instrument.keywords = long-slit elIf MASKNAME/focal_plane_mask contains the string 'IFU' then Instrument.keywords = IFU else any other spectra should have Instrument.keywords = MOS else: Instrument.keywords = imaging

dbohlender commented 4 years ago

Actually, at 3AM I realized that the jsonsummary 'mode' value is likely sufficient for this. It is supposed to provide values of "imaging, spectroscopy, LS (Longslit Spectroscopy), MOS (Multi Object Spectroscopy) or IFS (Integral Field Spectroscopy)". There is likely no reason to change these values but simply use them for the value of Instrument.keywords.