milespy.magnitudes

Magnitude computation from spectra and filter response (AB and Vega zeropoints).

Functions

compute_mags(wave, flux, filters, zeropoint)

Compute magnitudes for a spectrum in the given filters.

sun_magnitude([filters, zeropoint])

Compute the Sun's absolute magnitudes in the desired filters.

Classes

Magnitude

MagnitudeComputationConfig(**data)

Validates zeropoint and options for magnitude computation.