wavelength_regrid

sitelle.utils.wavelength_regrid(cube, rebinned, only_bandpass, type, header=None)

Interpolation of a 3D datacube on a regular wavelength axis.

Parameters:
  • cube (SpectralCube) – Input SpectralCube
  • rebinned (3D ndarray) – A cube of data taken from cube (can be fwhm or error or flux)
  • only_bandpass (bool, Default = False) – If True, data is cut outside of the bandpass of the filter
  • type ('FWHM' or 'ERR') – Defines different behaviors depending on the type of data
  • header (dict) – (Optional) Default is SpectraLCube header