lightcurvelynx.effects.snia_intrinsic_scatter

Intrinsic scatter for SN Ia

Classes

SNIaIntrinsicScatter

An effect model for intrinsic scatter in SN Ia.

Module Contents

class SNIaIntrinsicScatter(modelpars, interp_method='sine', **kwargs)[source]

Bases: lightcurvelynx.effects.effect_model.EffectModel

An effect model for intrinsic scatter in SN Ia.

modelpars[source]

A dictionary of model parameters, which must include the key “modelname” with value “COH”, “G10”, or “C11”. Additional parameters may be included depending on the modelname.

Type:

dict

interp_method[source]

The interpolation method to use for the G10 and C11 models. Must be one of “sine”, “linear”, “pchip”, or “cubic”. Default is “sine”.

Type:

str

modelpars[source]
rest_frame = True[source]
interp_method = 'sine'[source]
apply(flux_density, times=None, wavelengths=None, **kwargs)[source]

Apply the effect to observations (flux_density values).

Parameters:
  • flux_density (numpy.ndarray) – A length T X N matrix of flux density values (in nJy).

  • times (numpy.ndarray, optional) – A length T array of times (in MJD). Not used for this effect.

  • wavelengths (numpy.ndarray, optional) – A length N array of wavelengths (in angstroms).

  • **kwargs (dict, optional) – Any additional keyword arguments. Pass modelpars to override the instance-level modelpars for this call.

Returns:

flux_density – A length T x N matrix of flux densities after the effect is applied (in nJy).

Return type:

numpy.ndarray