synthetic_magnitude

nsb2.core.photometry.synthetic_magnitude(wvl, flx, bandpass)[source]

Compute the synthetic Vega magnitude of a spectrum in a passband.

Parameters:
Returns:

Magnitudes on the Vega system, with the wavelength axis removed.

Return type:

numpy.ndarray

Notes

The integrand is photon-weighted (an extra factor of wavelength), matching the convention of the zeropoint returned by nsb2.core.spectral.Bandpass.vegazero.