scopesim.effects.ter_curves_utils.apply_throughput_to_cube

scopesim.effects.ter_curves_utils.apply_throughput_to_cube#

scopesim.effects.ter_curves_utils.apply_throughput_to_cube(cube: ImageHDU, thru: SpectralElement | SourceSpectrum, wave_cube: Quantity) ImageHDU#

Apply throughput curve to a spectroscopic cube.

Parameters:
  • cube (fits.ImageHDU) – Three-dimensional image, dimension 0 (in python convention) is the spectral dimension.

  • thru (SpectralElement | SourceSpectrum) – Throughput curve, spectrum or filter.

  • wave_cube (u.Quantity["length"]) – Wavelength axis of the cube.

Returns:

cube – Header unchanged, data multiplied with wavelength-dependent throughput.

Return type:

fits.ImageHDU