nirspec_brightobj
- jwst.flatfield.flat_field.nirspec_brightobj(output_model, f_flat_model, s_flat_model, d_flat_model, dispaxis, user_supplied_flat=None, inverse=False)[source]
Apply flat-fielding for NIRSpec BRIGHTOBJ data, in-place.
- Parameters:
- output_model
JwstDataModel CubeModel, modified (flat fielded) plane by plane, in-place.
- f_flat_model
NirspecFlatModelor None Flat field for the fore optics.
- s_flat_model
NirspecFlatModelor None Flat field for the spectrograph.
- d_flat_model
NirspecFlatModelor None Flat field for the detector.
- dispaxisint
1 means horizontal dispersion, 2 means vertical dispersion.
- user_supplied_flat
ImageModelor None, optional A pre-computed flat to use directly. If supplied, all other inputs are ignored.
- inversebool, optional
Invert the math operations used to apply the flat field.
- output_model
- Returns:
- result
ImageModel The interpolated flat field.
- result