center_from_ta_image
- jwst.targ_centroid.targ_centroid.center_from_ta_image(ta_image, ref_center, subarray_origin=(1, 1))[source]
Determine the center of a point source from a TA image.
- Parameters:
- ta_imagendarray
2D target acquisition image data.
- ref_centertuple of float
(x_ref, y_ref)reference center position in subarray coordinates, zero-indexed. Dither position comes out of the WCS transform already in subarray coordinates.- subarray_origintuple of int, optional
(xstart, ystart)1-indexed origin of the subarray in full-frame coordinates. Default is(1, 1)for full frame.
- Returns:
- x_center, y_centerfloat
Fitted x, y center position in full-frame detector coordinates.
- x_center_subarray, y_center_subarrayfloat
Fitted x, y center position in subarray coordinates.