synthesizer.emission_models.generators.dust.blackbody

A submodule defining blackbody dust emission generators.

Classes

class synthesizer.emission_models.generators.dust.blackbody.Blackbody(temperature=None, do_cmb_heating=False, intrinsic=None, attenuated=None, scaler=None)[source]

A class to generate a blackbody emission spectrum.

This can be used to generate standalone normalised blackbody spectra, or it can be used to generate scaled blackbody spectra by providing either a scaler EmissionModel or an intrinsic/attenuated EmissionModel pair to scale the blackbody spectrum accordingly. For more details see the base DustEmission parent class.

temperature

The temperature of the blackbody.

Type:

unyt_quantity

temperature is optional. A value set on the generator is a fixed override that takes priority over any value on the emitter (only an EmissionModel’s fixed_parameters take priority over it). If left as None it is read from the emitter.

get_spectra(lams, redshift=0)[source]

Generate dust emission spectra for given wavelength grid.

This will return the scaling free spectra for a given wavelength grid. It will not consider any emitter or model, so the temperature must have been provided directly to the class (otherwise a MissingAttribute exception is raised).

Parameters:
  • lams (unyt_array) – The wavelength grid on which to generate the spectra.

  • redshift (float) – The redshift at which to calculate the CMB heating.

Returns:

The generated dust emission SED.

Return type:

Sed