do_correction

jwst.spectral_leak.spectral_leak.do_correction(sp_leak_ref, ch1b, ch3a)[source]

Apply spectral leak correction to Channel 3A data using Channel 1B data.

Using the spectral leak reference correction and spectrum containing Channel 1B to correct the Channel 3A spectrum.

Parameters:
sp_leak_refstr

Name of the spectral leak reference file defined by MirMrsPtCorrModel.

ch1bndarray

Input Channel 1B spectrum.

ch3andarray

Input Channel 3A spectrum.

Returns:
output_modelRampModel

Spectral leak corrected science data.