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 – V-band extinction from host galaxy in magnitudes
model_kwargs – kwargs shared by models frequency and r_v (extinction paramater defaults to 3.1)
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:
flux density signal with extinction added