update_pointing_and_wcsinfo_metadata
- romanisim.util.update_pointing_and_wcsinfo_metadata(metadata, gwcs)
Update pointing and wcsinfo keywords to use the aperture for this SCA.
Updates metadata in place, setting v2/v3_ref to be equal to the V2 and V3 of the center of the detector, and ra/dec_ref accordingly. Also updates the pointing to refer to this SCA and ra/dec_v1 to point along the boresight.
No updates are performed if gwcs is not a gWCS object or if pointing and wcsinfo are not present in metadata.
- Parameters:
- metadatadict
Metadata to update
- gwcsWCS object
image WCS