cwitools.utils.get_instrument¶
-
cwitools.utils.
get_instrument
(hdr)¶ Get the instrument (‘PCWI’ or ‘KCWI’) based on the header.
Parameters: hdr (astropy.io.fits.hdu.header) – The FITS header Returns: “PCWI” or “KCWI” Return type: str Raises: ValueError
– If the keyword ‘INSTRUME’ is not found in the header.