makemodel_ccode
- jwst.straylight.straylight.makemodel_ccode(fimg, xvec, imin, imax, lor_fwhm, lor_amp, g_fwhm, g_dx, g1_amp, g2_amp)[source]
C version wrapper for determining the cross-artifact model to subtract.
- Parameters:
- fimgndarray
Detector flux values mapped to a single 1D array.
- xvecndarray
Array of x pixel values across the detector.
- iminint
Starting column to fit (1/2 detector at a time).
- imaxint
Ending column to fit.
- lor_fwhmndarray
FWHM of the Lorenztian for each detector row.
- lor_ampndarray
Amplitude of the Lorenztian for each detector row.
- g_fwhmndarray
Width of the gaussians for each detector row.
- g_dxndarray
Linear offset of the gaussians for each detector row 1x for inner gaussian pair, 2x for outer gaussian pair.
- g1_ampndarray
Amplitude of the inner gaussians for each detector row.
- g2_ampndarray
Amplitude of the outer gaussians for each detector row.
- Returns:
- modelndarray
1D cross-artifact detector model.
See also
makemodel_compositePython version.