get_spectrum_AB_mags

grizli.utils.get_spectrum_AB_mags(spectrum, bandpasses=[])[source]

Integrate a pysynphot spectrum through filter bandpasses

Parameters:
spectrum : type
bandpasses : list

List of pysynphot bandpass objects, e.g.,

>>> import pysynphot as S
>>> bandpasses = [S.ObsBandpass('wfc3,ir,f140w')]
Returns:
ab_mags : dict

Dictionary with keys from bandpasses and the integrated magnitudes