EphemerisSource

class nsb2.core.sources.EphemerisSource[source]

Bases: Source

A solar system body, whose position depends on the observation time.

Parameters:
  • body (str) – Body name understood by astropy.coordinates.get_body(), e.g. "moon".

  • weight_function (callable) – Called with the observation time; returns the brightness weights.

  • data_function (callable) – Called with the observation time; returns the spectral grid coordinates, e.g. the lunar phase angle.

  • spectral_grid (nsb2.core.spectral.SpectralGrid) – Grid the spectral coordinates refer to.

  • name (str, optional) – Identifier for the source. Defaults to body.

Attributes Summary

spectral_grid

Spectra of this source's emitters.

Methods Summary

query_direct(observation, pixel_coords, ...)

Find the pixels the body falls into, if it is above the horizon.

query_scattered(observation[, nside])

Return the body if it is above the horizon, else an empty field.

Attributes Documentation

spectral_grid

Spectra of this source’s emitters.

Type:

nsb2.core.spectral.SpectralGrid

Methods Documentation

query_direct(observation, pixel_coords, pixel_radii)[source]

Find the pixels the body falls into, if it is above the horizon.

See Source.query_direct() for the parameters and returns.

query_scattered(observation, nside=64)[source]

Return the body if it is above the horizon, else an empty field.

See Source.query_scattered() for the parameters and returns. nside is unused, since the body is a single point source.

__init__(body, weight_function, data_function, spectral_grid, name='')[source]
classmethod __new__(*args, **kwargs)