apply_lg_plus

jwst.ami.ami_analyze.apply_lg_plus(input_model, throughput_model, nrm_model, oversample, psf_offset, rotsearch_parameters, bandpass, usebp, firstfew, chooseholes, affine2d, run_bpfix)[source]

Apply the image plane algorithm (LG-PLUS) to an AMI exposure.

Parameters:
input_modeldata model object

AMI science image to be analyzed

throughput_modeldata model object

Filter throughput data

nrm_modeldata model object

NRM model data

oversampleint

Oversampling factor

psf_offsetstr (two floats)

PSF offset values to use to create the model array

rotsearch_parametersstr (‘start stop step’)

Rotation search parameters

bandpasssynphot spectrum or array

Synphot spectrum or array to override filter/source

usebpbool

If True, exclude pixels marked DO_NOT_USE from fringe fitting

firstfewint

If not None, process only the first few integrations

chooseholesstr

If not None, fit only certain fringes e.g. [‘B4’,’B5’,’B6’,’C2’]

affine2duser-defined Affine2D object

None or user-defined Affine2d object

run_bpfixbool

Run Fourier bad pixel fix on cropped data

Returns:
oifitsmodelAmiOIModel object

AMI tables of median observables from LG algorithm fringe fitting in OIFITS format

oifitsmodel_multiAmiOIModel object

AMI tables of observables for each integration from LG algorithm fringe fitting in OIFITS format

amilgmodelAmiLGFitModel object

AMI cropped data, model, and residual data from LG algorithm fringe fitting