read_flat_table

jwst.flatfield.flat_field.read_flat_table(flat_model, exposure_type, slit_name=None, quadrant=None)[source]

Read the table (the “fast” variation).

Parameters:
flat_modelNirspecFlatModel or NirspecQuadFlatModel

This contains the flat field table from which we will read the “fast” variation flat-field data.

exposure_typestr

The exposure type refers to fixed slit, IFU, or using the micro-shutter array. In this function we just need to check for fixed-slit types.

slit_namestr or None, optional

The name of the slit. This is only needed for fixed-slit data, in which case it is used for selecting the relevant row of the table.

quadrant{0, 1, 2, 3} or None, optional

The quadrant of the micro-shutter array. This is only needed for fore-optics for MSA (MOS) data.

Returns:
tab_wlndarray of float

The 1D column of wavelengths read from the fast-variation table.

tab_flatndarray of float

The 1D column of flat_field values read from the fast-variation table. tab_wl and tab_flat should be the same length.

tab_flat_errndarray of float

The 1D column of flat field error values read from the fast-variation table.