nod_pair_location

jwst.extract_1d.source_location.nod_pair_location(input_model, middle_wl)[source]

Estimate a nod pair location from the WCS.

For MIRI, it will guess the location from the dither offsets. For NIRSpec, it will guess from the slit position. For anything else, or if the estimate fails, it will return NaN for the location.

Parameters:
input_modelDataModel

Model containing WCS and dither data.

middle_wlfloat

Wavelength at the middle of the array.

Returns:
nod_locationfloat

The expected location of the negative trace, in the cross-dispersion direction, at the middle wavelength.