LonLatSource¶
- class nsb2.core.sources.LonLatSource[source]¶
Bases:
RadianceSourceDiffuse source defined by analytic functions of longitude and latitude.
- Parameters:
frame (str or astropy.coordinates.BaseCoordinateFrame or None) – Frame the model functions are defined in. None means the observation’s own frame, as for airglow, which is fixed to the local horizon.
weight_function (callable) – Called with
(lon, lat)in radians; returns brightness weights.data_function (callable) – Called with
(lon, lat)in radians; returns spectral grid coordinates.spectral_grid (nsb2.core.spectral.SpectralGrid) – Grid the spectral coordinates refer to.
name (str, optional) – Identifier for the source. Defaults to the class name.
Methods Summary
query_scattered(observation[, nside])Sample the model over a HEALPix grid of the visible hemisphere.
Methods Documentation
- query_scattered(observation, nside=64)[source]¶
Sample the model over a HEALPix grid of the visible hemisphere.
See
Source.query_scattered()for the parameters and returns.
- classmethod __new__(*args, **kwargs)¶