redback.transient_models.supernova_models.sncosmo_models

redback.transient_models.supernova_models.sncosmo_models(time, redshift, model_kwargs=None, **kwargs)[source]

A wrapper to SNCosmo models

Parameters:
  • time – observer frame time in days

  • redshift – redshift

  • model_kwargs – all model keyword arguments in a dictionary

  • kwargs – Additional keyword arguments for redback

  • frequency – Frequency in Hz to evaluate model on, must be same shape as time array or a single value.

  • sncosmo_model – String of the SNcosmo model to use.

  • peak_time – SNe peak time in days

  • 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

Returns:

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