redback.sed.blackbody_to_spectrum

redback.sed.blackbody_to_spectrum(temperature, r_photosphere, frequency, dl, redshift, lambda_observer_frame)[source]

Create a blackbody spectrum directly from physical parameters.

This is a convenience wrapper that combines blackbody_to_flux_density with flux_density_to_spectrum, consolidating the most common pattern used across transient models.

Parameters:
  • temperature – Effective temperature in Kelvin (can be array for multiple times)

  • r_photosphere – Photosphere radius in cm (can be array for multiple times)

  • frequency – Frequency array in Hz (source frame). Shape should be (n_frequencies, 1) for broadcasting

  • dl – Luminosity distance in cm

  • redshift – Cosmological redshift (dimensionless)

  • lambda_observer_frame – Observer frame wavelength array in Angstrom

Returns:

Spectrum in erg/cm^2/s/Angstrom with shape (n_times, n_frequencies)