get_center

jwst.pathloss.pathloss.get_center(exp_type, input_model, offsets=False)[source]

Get the center of the target in the aperture.

(0.0, 0.0) is the aperture center. Coordinates go from -0.5 to 0.5.

Parameters:
exp_typestr

Keyword value

input_modelJwstDataModel

Science data to be corrected

offsetsbool

Only applies for MIRI LRS fixed-slit; if True, the offsets will be returned as well in the form of (imx, imy)

Returns:
xcenterfloat

X-coordinate center of the target in the aperture

ycenterfloat

Y-coordinate center of the target in the aperture

imxfloat, optional

X-location relative to LRS aperture reference point

imyfloat, optional

Y-location relative to LRS aperture reference point