cwitools.utils.get_specres

cwitools.utils.get_specres(hdr)

Get the approximate spectral resolution based on the header

The returned values for various KCWI settings are taken from the estimates on KCWI’s home page at keck.edu. PCWI returns R = 2000 for the Richardson grating and R = 5000 for all others.

Parameters:hdr (astropy FITS Header) – The header
Returns:The spectral resolution, R for the grating/slicer used.
Return type:float
Raises:ValueError – If grating or slicer name is not recognized