Open dbohlender opened 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.
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