sncosmo.MLCS2k2Source

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

A spectral time series model based on the MLCS2k2 model light curves, using the Hsiao template at each phase, mangled to match the model photometry.

The spectral flux density of this model is given by

\[F(t, \lambda) = A \times M(\Delta, t, \lambda)\]

where _A_ is the amplitude and _Delta_ is the MLCS2k2 light curve shape parameter.

Note

Requires scipy version 0.14 or higher.

Parameters:
fluxfilestr or obj

Filename (or open file-like object) of a FITS file containing 3-d array of spectral flux density values for a grid of delta, phase and wavelength values.

__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.

param_names_latex

parameters

Parameter value array