Source¶
- class nsb2.core.sources.Source[source]¶
Bases:
ABCBase class for sky brightness sources.
- Variables:
name (str) – Human-readable identifier, carried through to
nsb2.core.dtypes.Predictionso that the contributions of several sources can be told apart.
Attributes Summary
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.
Methods Documentation
- abstractmethod query_direct(observation, pixel_coords, pixel_radii)[source]¶
Find the emitters seen directly by each pixel.
- Parameters:
observation (astropy.coordinates.BaseCoordinateFrame) – The telescope pointing frame, carrying the observation time and location on its
origin.pixel_coords (astropy.coordinates.SkyCoord) – Pixel centre positions, shape
(N_pix,).pixel_radii (numpy.ndarray) – Search radius per pixel in radians, shape
(N_pix,).
- Returns:
field (nsb2.core.dtypes.SourceField) – The emitters found.
pixel_refs (nsb2.core.dtypes.PixelRefs) – Which of them contribute to which pixel, with
weightsleft unset for the instrument to fill in.
- abstractmethod query_scattered(observation, nside=64)[source]¶
Find every emitter above the horizon.
- Parameters:
observation (astropy.coordinates.BaseCoordinateFrame) – The telescope pointing frame.
nside (int, optional) – HEALPix resolution used to discretise diffuse emission. Default is
DEFAULT_NSIDE.
- Returns:
All emitters that can scatter light into the field of view.
- Return type:
- __init__()¶
- classmethod __new__(*args, **kwargs)¶