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
smapby updating theCRPIX1, CRPIX2, CDELT1, CDELT2, CROTA2keywords in the header using the information provided inpointing_table.Note
The method removes any
PCi_jmatrix keys in the header and updates theCROTA2keyword.Warning
This function is only intended to be used on level 1 images, including cutouts/submaps. This function should be applied before rotating, resampling, rebinning, or interpolating the map in any way.
- Parameters:
smap (
AIAMap) – Input map.pointing_table (
QTable) – Table of pointing information. You can get this table by callingaiapy.calibrate.utils.get_pointing_table.
- Returns:
Updated map with pointing information.
- Return type: