FITS_tools.cube_regrid.regrid_cube_hdu(hdu, outheader, smooth=False, **kwargs)[source] [edit on github]

Regrid a FITS HDU to a target header. Requires that the FITS object and the target header have spectral and spatial overlap. See regrid_cube for additional details or alternative input options.


hdu : PrimaryHDU

FITS HDU (not HDUlist) containing the cube to be reprojected

outheader : Header

A target Header to project to

smooth : bool

Smooth the HDUs to match resolution? Kernel size is determined using smoothing_kernel_size


Smoothing is done in 3D to be maximally general. This can be exceedingly slow!


rgcube : PrimaryHDU

The regridded cube HDU