CachingSkyMap#
- class lsst.skymap.cachingSkyMap.CachingSkyMap(numTracts, config=None, version=0)
Bases:
BaseSkyMapA SkyMap that generates its tracts on request and caches them.
Parameters#
- numTracts
int Number of tracts to create.
- config
lsst.skymap.BaseSkyMapConfig(optional) The configuration for this SkyMap; if None use the default config.
- version
intortupleofint(optional) Software version of this class, to retain compatibility with old instances.
Notes#
A subclass should define * __init__ to calculate the required number of tracts (and pass it up) * generateTract to generate a tract
Subclassers should also check that the arguments to the constructor are consistent with the below __reduce__ method.
Methods Summary
generateTract(index)Generate TractInfo for the specified tract index.
Methods Documentation
- generateTract(index)#
Generate TractInfo for the specified tract index.
- numTracts