Source code for pyreduce.instruments.JWST_MIRI
"""
Handles instrument specific info for the HARPS spectrograph
Mostly reading data from the header
"""
import logging
import os.path
from ..common import Instrument
logger = logging.getLogger(__name__)
[docs]
class JWST_MIRI(Instrument):
[docs]
def get_wavecal_filename(self, header, channel, **kwargs):
"""Get the filename of the wavelength calibration config file"""
cwd = os.path.dirname(__file__)
fname = f"wavecal_{channel}_2D.npz"
fname = os.path.join(cwd, fname)
return fname