sncosmo.SpectralMagSystem

class sncosmo.SpectralMagSystem(refspectrum, name=None)[source]

A magnitude system defined by a fundamental spectrophotometric standard.

Parameters:
refspectrumsncosmo.SpectrumModel

The spectrum of the fundamental spectrophotometric standard.

__init__(refspectrum, name=None)[source]

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

name

Name of magnitude system.