sncosmo.SNEMOSource

class sncosmo.SNEMOSource(fluxfile, name=None, version=None)[source]

The SNEMO Type Ia supernova spectral timeseries model

The spectral flux density of this model is given by

\[F(t, \lambda) = c_0(e_0(t, \lambda) + \sum_{i=1}^{n} c_i e_i(t, \lambda)) \times FM07(\lambda, A_s)\]

where c_0, c_i, and A_s are the free parameters of the model.

Parameters:
fluxfilestr or obj, optional

Filename of an ascii file containing 2-d array of spectral flux density values for a grid of phase and wavelength values. Assuming columns phase, wavelength, e_0, e_1, e_2

__init__(fluxfile, name=None, version=None)[source]

Methods

__init__(fluxfile[, name, version])

bandflux(band, phase[, zp, zpsys])

Flux through the given bandpass(es) at the given phase(s).

bandmag(band, magsys, phase)

Magnitude at the given phase(s) through the given bandpass(es), and for the given magnitude system(s).

flux(phase, wave)

The spectral flux density at the given phase and wavelength values.

get(name)

Get parameter of the model by name.

maxphase()

maxwave()

minphase()

minwave()

peakmag(band, magsys[, sampling])

Peak apparent magnitude in rest-frame bandpass.

peakphase(band_or_wave[, sampling])

Determine phase of maximum flux for the given band/wavelength.

set(**param_dict)

Set parameters of the model by name.

set_peakmag(m, band, magsys[, sampling])

Set peak apparent magnitude in rest-frame bandpass.

update(param_dict)

Set parameters of the model from a dictionary.

Attributes

param_names

List of parameter names.

parameters

Parameter value array