snsim.scatter

This package contains the scattering effects.

Classes

G10

Guy (2010) SNe Ia non-coherent scattering.

C11

C11 scattering effect for sncosmo.

Functions

init_sn_sct_model(sct_mod, *args)

Add scattering effect on sncosmo model.

gen_BS20_scatter(n_sn[, par_names, seed])

Generate n coherent mag scattering term.

Module Contents

snsim.scatter.init_sn_sct_model(sct_mod, *args)[source]

Add scattering effect on sncosmo model.

Parameters:

sct_mod (str) – Name of the model to use.

Return type:

None

class snsim.scatter.G10(SALTsource)[source]

Bases: sncosmo.PropagationEffect

Guy (2010) SNe Ia non-coherent scattering.

Implementation is done following arxiv:1209.2482.

Initialize G10 class.

param_names_latex = ['\\lambda_0', 'F_0', 'F_1', 'd_L', 'RndS']
compute_sigma_nodes()[source]

Computes the sigma nodes.

propagate(wave, flux)[source]

Propagate the effect to the flux.

class snsim.scatter.C11[source]

Bases: sncosmo.PropagationEffect

C11 scattering effect for sncosmo. Use COV matrix between the vUBVRI bands from N. Chottard thesis.

Implementation is done following arxiv:1209.2482.

Initialise C11 class.

param_names_latex = ['\rho_\\mathrm{vU}', 'S_f', 'RndS']
build_cov()[source]
propagate(wave, flux)[source]

Propagate the effect to the flux.

snsim.scatter.gen_BS20_scatter(n_sn, par_names=['beta_sn', 'Rv', 'E_dust', 'c_int'], seed=None)[source]

Generate n coherent mag scattering term.

Parameters:
  • n (int) – Number of mag scattering terms to generate.

  • seed (int, optional) – Random seed.

Returns:

numpy array containing scattering terms generated.

Return type:

numpy.ndarray(float)