update_pointing#
- aiapy.calibrate.update_pointing(smap, *, pointing_table=None)[source]#
Update the pointing information in the input map header.
This function updates the pointing information in
smap
by updating theCRPIX1, CRPIX2, CDELT1, CDELT2, CROTA2
keywords in the header using the information provided inpointing_table
. Ifpointing_table
is not specified, the 3-hour pointing information is queried from the JSOC.Note
The method removes any
PCi_j
matrix keys in the header and updates theCROTA2
keyword.Note
If correcting pointing information for a large number of images, it is strongly recommended to query the table once for the appropriate interval and then pass this table in rather than executing repeated queries.
Warning
This function is only intended to be used for full-disk images at the full resolution of 4096x4096 pixels. It will raise a
ValueError
if the input map does not meet these criteria.- Parameters:
- Returns:
See also