redback.transient_models.supernova_models.salt2

redback.transient_models.supernova_models.salt2(time, redshift, x0, x1, c, peak_time, **kwargs)[source]

A wrapper to the salt2 model in sncosmo

Parameters:
  • time – time in days in observer frame (in mjd days)

  • redshift – redshift

  • x0 – x0

  • x1 – x1

  • c – c

  • peak_time – peak time in mjd

  • kwargs – Additional keyword arguments

  • cosmology – astropy cosmology object by default set to Planck18

  • mw_extinction – Boolean for whether there is MW extinction or not. Default True

  • host_extinction – Boolean for whether there is host extinction or not. Default True if used adds an extra parameter ebv which must also be in kwargs; host galaxy E(B-V). Set to 0.1 by default

  • use_set_peak_magnitude – Boolean for whether to set the peak magnitude or not. Default False, if True the following keyword arguments also apply. Else the brightness is set by the model_kwargs.

  • peak_abs_mag – SNe peak absolute magnitude default set to -19

  • peak_abs_mag_band – Band corresponding to the peak abs mag limit, default to standard::b. Must be in SNCosmo

  • magnitude_system – Mag system; default ab

  • output_format – ‘flux_density’, ‘magnitude’, ‘spectra’, ‘flux’, ‘sncosmo_source’

Returns:

set by output format - ‘flux_density’, ‘magnitude’, ‘flux’, ‘sncosmo_source’