sncosmo.SpectralMagSystem¶
- class sncosmo.SpectralMagSystem(refspectrum, name=None)[source]¶
A magnitude system defined by a fundamental spectrophotometric standard.
- Parameters:
- refspectrum
sncosmo.SpectrumModel The spectrum of the fundamental spectrophotometric standard.
- refspectrum
Methods
__init__(refspectrum[, name])band_flux_to_mag(flux, band)Convert flux (photons / s / cm^2) to magnitude.
band_mag_to_flux(mag, band)Convert magnitude to flux in photons / s / cm^2
zpbandflux(band)Flux of an object with magnitude zero in the given bandpass.
Attributes
nameName of magnitude system.