downsample_cube

FITS_tools.cube_regrid.downsample_cube(cubehdu, factor, spectralaxis=None)[source] [edit on github]

Downsample a cube along the spectral axis

Parameters:

cubehdu : PrimaryHDU

The cube to downsample

factor : int

The factor by which the cube should be downsampled

spectralaxis : int

The 0-indexed ID fo the spectral axis. Will be determined automatically if not specified