redback.transient_models.combined_models.afterglow_and_optical

redback.transient_models.combined_models.afterglow_and_optical(time, redshift, av, **model_kwargs)[source]

function to combine the signals of any afterglow and any other optical transient with extinction added

Parameters:
  • time – time in days in observer frame

  • redshift – source redshift

  • av – absolute mag extinction

  • model_kwargs – kwargs shared by models e.g. output_format, frequency, bands, r_v (extinction paramater defaults to 3.1)

  • model_type – specify type of optical transient model- ‘supernova’, ‘tde’, ‘kilonova’, ‘magnetar_driven’, ‘shock_powered’

  • afterglow_kwargs – dictionary of parameters required by the afterglow transient model specified by ‘base_model’ and any additional keyword arguments. Refer to model documentation for details.

  • optical_kwargs – dictionary of parameters required by the optical transient model specifed by ‘base_model’ and any additional keyword arguments. Note the base model must correspond to the given model type. Refer to model documentation for details.

Returns:

set by shared_kwargs output format - ‘flux_density’ or ‘magnitude’ with extinction added note that only afterglow_models_sed allow for magnitude outputs