fit_residual_fringes_1d

jwst.residual_fringe.fit_residual_fringes_1d(flux, wavelength, channel=1, dichroic_only=False, max_amp=None, clip_features=True, clip_sigma=5.0, max_line=None, ignore_regions=None)[source]

Fit residual fringes in 1D.

Parameters:
fluxndarray

The 1D array of fluxes.

wavelengthndarray

The 1D array of wavelengths.

channelint, optional

The MRS spectral channel.

dichroic_onlybool, optional

Fit only dichroic fringes.

max_ampfloat, optional

The maximum relative amplitude value for fringe correction. If not provided, is set to MAXAMP_1D.

clip_featuresbool, optional

If True, spectral features are masked via sigma clipping. If False, they are detected and masked via comparison to the max_line value.

clip_sigmafloat, optional

If clip_features is True, then this value is used as the sigma threshold for clipping spectral features.

max_linefloat, optional

The maximum relative amplitude value to detect an emission line. If not provided, is set to MAXLINE_1D. Used only if clip_features is False.

ignore_regionslist of list of float, optional

If provided, data in the wavelengths specified is ignored in the fringe fits. The expected format is a list of [min_region, max_region] values, in input wavelength units.

Returns:
outputndarray

Modified version of input flux array.