CachingSkyMap#

class lsst.skymap.cachingSkyMap.CachingSkyMap(numTracts, config=None, version=0)

Bases: BaseSkyMap

A SkyMap that generates its tracts on request and caches them.

Parameters#

numTractsint

Number of tracts to create.

configlsst.skymap.BaseSkyMapConfig (optional)

The configuration for this SkyMap; if None use the default config.

versionint or tuple of int (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.