HEALPixSource

class nsb2.core.sources.HEALPixSource[source]

Bases: RadianceSource

Diffuse source stored as a HEALPix radiance map.

Uses the HEALPix pixelisation [Gorski2005] through healpy [Zonca2019]; see Acknowledgements.

Parameters:

See also

CatalogSource.to_map

Build one by binning a point source catalogue.

from_photometric_map

Build one from magnitude and colour maps.

Methods Summary

from_photometric_map(frame, magnitude, ...)

Build a HEALPix source from magnitude and colour maps.

query_scattered(observation[, nside])

Resample the map onto the visible hemisphere at the given resolution.

Methods Documentation

classmethod from_photometric_map(frame, magnitude, color, spectral_library, name='')[source]

Build a HEALPix source from magnitude and colour maps.

Parameters:
Returns:

Source whose spectra are interpolated by colour index, with brightness converted to a radiance by dividing by the cell solid angle.

Return type:

HEALPixSource

query_scattered(observation, nside=64)[source]

Resample the map onto the visible hemisphere at the given resolution.

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

__init__(frame, weight, data, spectral_grid, name='')[source]
classmethod __new__(*args, **kwargs)