read_image_wl

jwst.flatfield.flat_field.read_image_wl(flat_model, quadrant=None)[source]

Read wavelengths for the image planes.

This function should only be called if the SCI array in flat_model is 3-D. The purpose is to get the wavelength for each of the planes in the SCI array.

Parameters:
flat_modelNirspecFlatModel or NirspecQuadFlatModel

Flat field for the current component.

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:
wavelengthndarray

A 1D array of wavelengths, one for each plane of the SCI array.