make_kernels

jwst.refpix.optimized_convolution.make_kernels(sirs_kernel_model, detector, gaussmooth, halfwidth)[source]

Make convolution kernels from Fourier coefficients in the reference file.

Parameters:
sirs_kernel_modelSIRSKernelModel

Data model containing the Fourier coefficients from the reference files for Simple Improved Reference Subtraction (SIRS).

detectorstr

Name of the detector of the input data.

gaussmoothfloat

Width of Gaussian smoothing kernel to use as a low-pass filter on reference file’s coefficients.

halfwidthint

Half-width of convolution kernel to build from reference file’s coefficients.

Returns:
kernelslist

List of kernels appropriate for convolution with the left and right reference pixels.