hyperion.sources.MapSource

Contents

hyperion.sources.MapSource#

class hyperion.sources.MapSource(name=None, peeloff=True, **kwargs)#

A diffuse source emitting from within the cells of the grid.

The luminosity attribute gives the total luminosity of the source, summed over all cells of the map (ergs/s), while the map attribute gives the relative luminosity in each cell (it does not need to be normalized). The map is the luminosity per cell, not per unit volume. If neither a spectrum nor a temperature is set, photons are emitted using the local emissivity of the dust.

Parameters:
namestr, optional

The name of the source

peeloffbool, optional

Whether to peel-off photons from this source

Notes

Any additional arguments are are used to initialize attributes.

Attributes

name

A string identifying the source (optional)

luminosity

The bolometric luminosity of the source (ergs/s)

temperature

The temperature of the source (K)

spectrum

The spectrum of the source, specified either as an astropy.table.Table instance with 'nu' and 'fnu' columns, or as a (nu, fnu) tuple, where the frequency is given in Hz, and the flux is given as F_nu (units are unimportant since the normalization is set by the luminosity).

map

The relative luminosity in each cell, given as a Numpy array or an AMRGridView instance