change_header_pointing

grizli.jwst_utils.change_header_pointing(header, ra_ref=0.0, dec_ref=0.0, pa_v3=0.0)[source]

Update a FITS header for a new pointing (center + roll).

Parameters
headerHeader

Parent header (must contain V2_REF, V3_REF keywords).

ra_ref, dec_reffloat

Pointing center, in decimal degrees, at reference the pixel defined in.

pa_v3float

Position angle of the telescope V3 axis, degrees.

.. warning::
Doesn’t update PC keywords based on pa_v3, which would rather have to
be computed from the new `gwcs`.