milespy.magnitudes.compute_mags

milespy.magnitudes.compute_mags(wave, flux, filters, zeropoint, sun=False)

Compute the magnitudes given a spectra and a set of fluxes

Core implementation of the magnitude computation, including the checks for the filter wavelength limits

Parameters:
  • wave (array) – Wavelength of the spectrum

  • flux (array) – Spectrum

  • filters (list[Filter]) – List of filters for which the magnitude is to be computed

  • zeropoint (str) – Type of zero point. Either AB or VEGA

  • sun (bool) – Flag to determine if the output is absolute magnitudes (True) or in flux (False) ??

Return type:

Magnitude