wcsalign

FITS_tools.hcongrid.wcsalign(hdu_in, header, outname=None, clobber=False)[source] [edit on github]

Align one FITS image to a specified header

Requires pyast.

Parameters:

hdu_in : PrimaryHDU

The HDU to reproject (must have header & data)

header : Header

The target header to project to

outname : str (optional)

The filename to write to.

clobber : bool

Overwrite the file outname if it exists

Returns:

The reprojected fits.PrimaryHDU