cwitools.coordinates.reproject_hdu¶
-
cwitools.coordinates.
reproject_hdu
(hdu1, header, method='interp-bicubic')¶ Reproject the WCS and data of one HDU to match another using ‘Reproject’.
Note: this is just a convenience wrapper of tools from the Reproject package.
Parameters: - hdu1 (HDU) – The HDU to be reprojected.
- header (astropy.FITS.header) – The header to be matched to.
- method (str) – Method to use from ‘Reproject’ package. “interp-nearest-neighbor” “interp-bilinear” “interp-bicubic” (Default) “exact”
Returns: The scaled HDU
Return type: astropy.fits.HDU