pynbody.analysis.luminosity.halo_lum

Contents

pynbody.analysis.luminosity.halo_lum#

pynbody.analysis.luminosity.halo_lum(sim, band, physical_units=True)[source]#

Calculate a total spectral density in a given bandpass for a halo.

Note that this requires an absolute calibration to be known for the requested bandpass, which presently is only coded for the AB system.

Spectral density is here defined as the power emitted per unit frequency.

Parameters:
  • sim (pynbody.SimSnap) – Halo (or other subsnap, or even a whole simulation) for which to calculate the luminosity. Any non-star particles are ignored.

  • band (str) – Bandpass name. Must be in the current SSP table and have an absolute calibration (unless normalized=False).

  • physical_units (bool) – If True, the luminosity is normalized with physical units. This requires an absolute calibration to be known for the requested bandpass. If False, the luminosity is normalized to a reference star with a magnitude of 0 in the given bandpass.