HEALPixSource¶
- class nsb2.core.sources.HEALPixSource[source]¶
Bases:
RadianceSourceDiffuse source stored as a HEALPix radiance map.
Uses the HEALPix pixelisation [Gorski2005] through healpy [Zonca2019]; see Acknowledgements.
- Parameters:
frame (str or astropy.coordinates.BaseCoordinateFrame) – Frame the map is defined in.
weight (astropy.units.Quantity) – Radiance per HEALPix cell, in nested ordering.
data (numpy.ndarray) – Spectral grid coordinates per cell, in nested ordering.
spectral_grid (nsb2.core.spectral.SpectralGrid) – Grid the spectral coordinates refer to.
name (str, optional) – Identifier for the source. Defaults to the class name.
See also
CatalogSource.to_mapBuild one by binning a point source catalogue.
from_photometric_mapBuild 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:
frame (str or astropy.coordinates.BaseCoordinateFrame) – Frame the maps are defined in.
magnitude (list) –
[bandpass, map]: the passband the magnitudes are measured in, and the integrated magnitude per HEALPix cell.color (list) –
[[blue_band, red_band], map]: the two passbands defining the colour index, and the index per cell.spectral_library (nsb2.core.spectral.SpectralGrid) – Template spectra, e.g. from
nsb2.core.photometry.PicklesTRDSAtlas1998().name (str, optional) – Identifier for the source. Defaults to the class name.
- Returns:
Source whose spectra are interpolated by colour index, with brightness converted to a radiance by dividing by the cell solid angle.
- Return type:
- 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.
- classmethod __new__(*args, **kwargs)¶