scopesim.effects.ter_curves_utils.combine_two_spectra

scopesim.effects.ter_curves_utils.combine_two_spectra#

scopesim.effects.ter_curves_utils.combine_two_spectra(spec_a, spec_b, action, wave_min, wave_max)#

Combine transmission and/or emission spectrum with a common waverange.

Spec_A is the source spectrum Spec_B is either the transmission or emission that should be applied

Parameters:
  • spec_a (synphot.SourceSpectrum)

  • spec_b (synphot.SpectralElement, synphot.SourceSpectrum)

  • action ({"multiply", "add"})

  • wave_min (quantity) – [Angstrom]

  • wave_max (quantity) – [Angstrom]

Returns:

new_source

Return type:

synphot.SourceSpectrum