LM-SAL / aiapy

Python library for AIA data analysis
https://aiapy.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Refactor `calibrate.register` to use `reproject` #112

Open nabobalis opened 2 years ago

nabobalis commented 2 years ago

In GitLab by @wtbarnes on Mar 12, 2022, 10:54

Currently, register (which mimics the usual aiaprep workflow) using sunpy.map.GenericMap.rotate to rotate, scale, and translate the image. Instead, we should just use reproject to reproject the level 1 image into a WCS which has the desired scale (specified using CDELT) and orientation (specified using the PC matrix) and puts the center of the sun at the center of the pixel grid (in the case of a full-disk image).

This would also resolve #112.