redback.transient_models.phenomenological_models.evolving_blackbody_with_features

redback.transient_models.phenomenological_models.evolving_blackbody_with_features(time, redshift, temperature_0, radius_0, temp_rise_index, temp_decline_index, temp_peak_time, radius_rise_index, radius_decline_index, radius_peak_time, reference_time=1.0, **kwargs)[source]

Blackbody spectrum with piecewise evolving temperature and radius, plus time-dependent spectral features

Parameters:
  • time – time in observer frame in days

  • redshift – source redshift

  • temperature_0 – initial blackbody temperature in Kelvin at reference_time

  • radius_0 – initial blackbody radius in cm at reference_time

  • 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

  • reference_time – reference time for temperature_0, radius_0 in days (defaults to 1.0)

  • kwargs – Additional parameters

  • frequency – Required if output_format is ‘flux_density’

  • bands – Required if output_format is ‘magnitude’ or ‘flux’

  • output_format – ‘flux_density’, ‘magnitude’, ‘spectra’, ‘flux’, ‘sncosmo_source’

  • lambda_array – Optional wavelength array in Angstroms to evaluate SED

  • cosmology – Cosmology object for luminosity distance calculation

Feature Parameters (dynamically numbered): Features are defined by groups of parameters with pattern: {param}_feature_{N} where N starts from 1. All features with the same N are grouped together.

Required for each feature N: :param rest_wavelength_feature_N: Central wavelength in Angstroms :param sigma_feature_N: Gaussian width in Angstroms :param amplitude_feature_N: Amplitude (negative=absorption, positive=emission) :param t_start_feature_N: Start time in source-frame days :param t_end_feature_N: End time in source-frame days

Optional for each feature N (smooth mode only): :param t_rise_feature_N: Rise time in source-frame days (default: 2.0) :param t_fall_feature_N: Fall time in source-frame days (default: 5.0)

General parameters: :param evolution_mode: ‘smooth’ or ‘sharp’ (default: ‘smooth’) :param use_default_features: If True and no custom features found, use defaults (default: False)

Returns:

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