parsnip.calculate_band_mw_extinctions

parsnip.calculate_band_mw_extinctions(bands)

Calculate the Milky Way extinction corrections for a set of bands

Multiply mwebv by these values to get the extinction that should be applied to each band for a specific light curve. For bands that have already been corrected, we set this value to 0.

Parameters:

bands (List[str]) – Bands to calculate the extinction for

Returns:

Milky Way extinction in each band

Return type:

ndarray

Raises:

KeyError – If any bands are not available in band_info in instruments.py