read_cubepars
- jwst.cube_build.cube_build_io_util.read_cubepars(par_filename, instrument, weighting, all_channel, all_subchannel, all_grating, all_filter, instrument_info)[source]
Read in CUBEPAR reference file.
Based on the instrument and channel/subchannels (MIRI) or grating/filter (NIRSPEC), read in the appropriate columns in the CUBEPAR reference file and fill in the corresponding dictionary in
instrument_info.- Parameters:
- par_filenamestr
Cube parameter reference filename
- instrumentstr
Either MIRI or NIRSPEC
- weightingstr
Type of weighting: msm, emem or drizzle
- all_channellist
All the channels contained in input data
- all_subchannellist
All subchannels contained in input data
- all_gratinglist
All the gratings contained in the input data
- all_filterlist
All the filters contained in the input data
- instrument_infodictionary
Holds the default spatial scales, spectral scales, ROI size, weighting parameters, and min and max wavelengths for each for each band