locn_from_wcs

jwst.extract_1d.ifu.locn_from_wcs(input_model, ra_targ, dec_targ)[source]

Get the location of the spectrum, based on the WCS.

Parameters:
input_modelJwstDataModel

The input science model.

ra_targ, dec_targfloat or None

The right ascension and declination of the target (degrees).

Returns:
locntuple of two int, or None

X and Y coordinates (in that order) of the pixel that has right ascension and declination coordinates closest to the target location. The spectral extraction region should be centered here.