redback.transient_models.spectral_models.powerlaw_plus_blackbody_spectrum_at_z
- redback.transient_models.spectral_models.powerlaw_plus_blackbody_spectrum_at_z(angstroms, redshift, pl_amplitude, pl_slope, pl_evolution_index, temperature_0, radius_0, temp_rise_index, temp_decline_index, temp_peak_time, radius_rise_index, radius_decline_index, radius_peak_time, time, **kwargs)[source]
A powerlaw + blackbody spectrum at a given redshift and time, properly accounting for redshift effects.
- Parameters:
angstroms – wavelength array in angstroms in obs frame
redshift – source redshift
pl_amplitude – power law amplitude at reference wavelength at t=1 day (erg/s/cm^2/Angstrom)
pl_slope – power law slope (F_lambda ∝ lambda^slope)
pl_evolution_index – power law time evolution F_pl(t) ∝ t^(-pl_evolution_index)
temperature_0 – initial blackbody temperature in Kelvin at t=1 day (rest frame)
radius_0 – initial blackbody radius in cm at t=1 day (rest frame)
temp_rise_index – temperature rise T(t) ∝ t^temp_rise_index for t < temp_peak_time
temp_decline_index – temperature decline T(t) ∝ t^(-temp_decline_index) for t > temp_peak_time
temp_peak_time – time in days when temperature peaks
radius_rise_index – radius rise R(t) ∝ t^radius_rise_index for t < radius_peak_time
radius_decline_index – radius decline R(t) ∝ t^(-radius_decline_index) for t > radius_peak_time
radius_peak_time – time in days when radius peaks
time – time in observer frame in days
kwargs – Additional parameters
reference_wavelength – wavelength for power law amplitude normalization in Angstroms (default 5000)
cosmology – Cosmology object for luminosity distance calculation
component – ‘combined’ (default), ‘blackbody’, or ‘powerlaw’ to return individual components
- Returns:
flux in ergs/s/cm^2/angstrom in obs frame