compute_siaf_pa_offset

grizli.jwst_utils.compute_siaf_pa_offset(c1, c2, c2_pa=202.9918, swap_coordinates=True, verbose=False)[source]

Eq. 10 from Bonaventura et al. for the small PA offset based on the median catalog position

Seems to have a sign error relative to what APT calculates internally, used if swap_coordinates=True

Parameters
c1array-like

Catalog position (ra, dec).

c2array-like

APT position (ra, dec).

c2_pafloat

APT position angle (deg).

swap_coordinatesbool

Swap the coordinates to agree with APT.

verbosebool

Print messaging to the terminal.

Returns
new_pafloat

New position angle.

dphifloat

Delta position angle.