lightcurvelynx.astro_utils.black_body

Functions

black_body_luminosity_density_per_solid(temperature, ...)

Calculate the black-body luminosity density per solid angle.

Module Contents

black_body_luminosity_density_per_solid(temperature, radius, wavelengths)[source]

Calculate the black-body luminosity density per solid angle.

It is L_nu / (4 pi) for a spherical isotropic source.

Parameters:
  • temperature (float) – The effective temperature of the star, in kelvins.

  • radius (float) – The radius of the star, in cm.

  • wavelengths (numpy.ndarray) – A length N array of wavelengths, in cm.

Returns:

luminosity_density – A length N array of luminosity density values. Output is in CGS units of erg/s/Hz/steradian.

Return type:

numpy.ndarray

Note

lightcurvelynx adopts nJy as the unit of flux density, so the output of this function may need to be converted to compatible units, e.g. multiply by 10^32.