This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" rotate a .FITS image to align north to up """ | |
from astropy.io import fits | |
from astropy.wcs import WCS | |
from reproject.mosaicking import find_optimal_celestial_wcs | |
from reproject import reproject_exact | |
def rotate_image(file_in, index, save_output=True): | |
""" | |
Rotate a .FITS image to align north to up. |