regrid_cube_hdu

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.

Parameters:

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

Warning

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

Returns:

rgcube : PrimaryHDU

The regridded cube HDU