sncosmo.MagSystem

class sncosmo.MagSystem(name=None)[source]

An abstract base class for magnitude systems.

__init__(name=None)[source]

Methods

__init__([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

name

Name of magnitude system.