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_modelImageModel or CubeModel

AMI science image to be analyzed. May be modified in processing.

throughput_modelThroughputModel

Filter throughput data

nrm_modelNRMModel

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

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

oifitsmodel_multiAmiOIModel

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

amilgmodelAmiOIModel

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