get_spectrum_AB_mags¶
- grizli.utils.get_spectrum_AB_mags(spectrum, bandpasses=[])[source]¶
Integrate a
pysynphot
spectrum through filter bandpasses- Parameters
- spectrumtype
- bandpasseslist
List of
pysynphot
bandpass objects, e.g.,>>> import pysynphot as S >>> bandpasses = [S.ObsBandpass('wfc3,ir,f140w')]
- Returns
- ab_magsdict
Dictionary with keys from
bandpasses
and the integrated magnitudes