Re-binning¶
-
cwitools.analysis.rebin(inputfits, xybin=1, zbin=1, vardata=False)¶ Re-bin a data cube along the spatial (x,y) and wavelength (z) axes.
Parameters: - inputfits (astropy FITS object) – Input FITS to be rebinned.
- xybin (int) – Integer binning factor for x,y axes. (Def: 1)
- zbin (int) – Integer binning factor for z axis. (Def: 1)
- vardata (bool) – Set to TRUE if rebinning variance data. (Def: True)
- fileExt (str) – File extension for output (Def: .binned.fits)