regrid_fits_cube¶
-
FITS_tools.cube_regrid.regrid_fits_cube(cubefilename, outheader, hdu=0, outfilename=None, clobber=False, **kwargs)[source] [edit on github]¶ Regrid a FITS file to a target header. Requires that the FITS file and the target header have spectral and spatial overlap.
See
regrid_cube_hduandregrid_cubefor additional details or alternative input options.Parameters: cubefilename : str
FITS file name containing the cube to be reprojected
outheader :
HeaderA target Header to project to
hdu : int
The hdu to project to the target header
outfilename : str
The output filename to save to
clobber : bool
Overwrite the output file if it exists?
kwargs : dict
Passed to
regrid_cube_hduReturns: rgcube :
PrimaryHDUThe regridded cube HDU