hst_obstype#
- jdaviz.utils.hst_obstype(hdulist)[source]#
Return the HST observation type from the
OBSTYPEkeyword.Some HST products share file suffixes/structure between imaging and spectroscopic observations (e.g. STIS sx2/raw, WFC3/IR grism drz), and their per-extension WCS is not always sufficient to distinguish the two. The
OBSTYPEkeyword is used instead.- Parameters:
- hdulist
astropy.io.fits.HDUList The HDUList to inspect.
- hdulist
- Returns:
- str or None
'imaging'or'spectroscopic'for HST products with a recognizedOBSTYPE, otherwiseNone(including for non-HST data).