Source

class nsb2.core.sources.Source[source]

Bases: ABC

Base class for sky brightness sources.

Variables:

name (str) – Human-readable identifier, carried through to nsb2.core.dtypes.Prediction so that the contributions of several sources can be told apart.

Attributes Summary

name

spectral_grid

Spectra of this source's emitters.

Methods Summary

query_direct(observation, pixel_coords, ...)

Find the emitters seen directly by each pixel.

query_scattered(observation[, nside])

Find every emitter above the horizon.

Attributes Documentation

name = ''
spectral_grid

Spectra of this source’s emitters.

Type:

nsb2.core.spectral.SpectralGrid

Methods Documentation

abstractmethod query_direct(observation, pixel_coords, pixel_radii)[source]

Find the emitters seen directly by each pixel.

Parameters:
Returns:

  • field (nsb2.core.dtypes.SourceField) – The emitters found.

  • pixel_refs (nsb2.core.dtypes.PixelRefs) – Which of them contribute to which pixel, with weights left unset for the instrument to fill in.

abstractmethod query_scattered(observation, nside=64)[source]

Find every emitter above the horizon.

Parameters:
Returns:

All emitters that can scatter light into the field of view.

Return type:

nsb2.core.dtypes.SourceField

__init__()
classmethod __new__(*args, **kwargs)