API

Public Step API

jwst.residual_fringe.residual_fringe_step Module

Correct residual fringes in MIRI MRS data.

Classes

ResidualFringeStep([name, parent, ...])

Apply residual fringe correction to a MIRI MRS image.

jwst.residual_fringe.utils Module

Functions

fit_residual_fringes_1d(flux, wavelength[, ...])

Fit residual fringes in 1D.

Complete Developer API

jwst.residual_fringe.fitter Module

Functions

spline_fitter(x, y, weights, knots, degree)

Fit a spline function to 1D data.

jwst.residual_fringe.residual_fringe Module

Apply residual fringe correction.

Classes

ResidualFringeCorrection(input_model, ...[, ...])

Calculate and apply correction for residual fringes.

NoFringeFlatError

Error raised when the input has not been fringe flat corrected.

jwst.residual_fringe.utils Module

Functions

slice_info(slice_map, channel)

Identify pixels by slice.

fill_wavenumbers(wnums)

Fill in missing wavenumber values.

multi_sine(n_sines)

Create a multi-sine model.

fit_envelope(wavenum, signal[, ...])

Fit the upper and lower envelope of signal using a univariate spline.

find_lines(signal, max_amp)

Determine the location of large spectral features.

clip_spectral_features(signal[, sigma])

Clip out large spectral features.

check_res_fringes(res_fringe_fit, max_amp)

Check for regions with bad fringe fits.

interp_helper(mask)

Create a convenience function for indexing low-weight values.

fit_1d_background_complex(flux, weights, wavenum)

Fit the background signal using a piecewise spline.

fit_1d_fringes_bayes_evidence(res_fringes, ...)

Fit the residual fringe signal.

make_knots(flux[, nknots, weights])

Define knot positions for piecewise models.

fit_1d_background_complex_1d(flux, weights, ...)

Fit the background signal using a piecewise spline of n knots.

fit_1d_fringes_bayes_evidence_1d(...)

Fit the residual fringe signal in 1D.