redback.transient_models.combined_models.afterglow_kilonova_sed
- redback.transient_models.combined_models.afterglow_kilonova_sed(time, redshift, av, **model_kwargs)[source]
function to combine the flux density signals of an afterglow and kilonova model 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 including frequency, lambda_array, and r_v (extinction parameter 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.
kilonova_kwargs – dictionary of parameters required by the kilonova transient model specified 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.
lambda_array – wavelength array in Angstroms, defaults to np.geomspace(100, 60000, 150)
output_format – output format (‘flux_density’, ‘magnitude’, ‘spectra’), defaults to ‘flux_density’
- Returns:
combined afterglow and kilonova model output in the requested format. If output_format is ‘spectra’, returns namedtuple with time, lambdas, and spectra. Otherwise returns array in the specified format.