combine_src_filt
- jwst.ami.utils.combine_src_filt(bandpass, srcspec, trim=0.01, nlambda=19)[source]
Get the observed spectrum through a filter.
Largely copied from Poppy instrument.py Define nlambda bins of wavelengths, calculate effstim for each, normalize by effstim total. nlambda should be calculated so there are ~10 wavelengths per resolution element (19 should work)
- Parameters:
- bandpasssynphot Spectrum
Filter bandpass (from get_filt_spec)
- srcspecsynphot Spectrum
Source spectrum (from get_src_spec)
- trimfloat, None
If not None, trim bandpass to where throughput greater than trim
- nlambdaint
Number of wavelengths across filter to return
- Returns:
- finalsrcnumpy array
Array of shape (nlambda,2) containing wavelengths, final throughputs