LegacyTractBuilder#

class lsst.skymap.LegacyTractBuilder(config)#

Bases: BaseTractBuilder

Methods Summary

getPackedConfig(config)

Get a packed config suitable for using in a sha1.

getPatchInfo(index, tractWcs)

Return information for the specified patch.

Methods Documentation

getPackedConfig(config)#

Get a packed config suitable for using in a sha1.

Parameters#

config : lsst.skymap.BaseTractBuilderConfig

Returns#

configPacked : bytes

getPatchInfo(index, tractWcs)#

Return information for the specified patch.

Parameters#

indexlsst.skymap.Index2D or Iterable of 2 int

Index of patch, as Index2D or pair of ints; or a sequential index as returned by getSequentialPatchIndex; negative values are not supported.

tractWcslsst.afw.geom.SkyWcs

WCS associated with the tract.

Returns#

resultlsst.skymap.PatchInfo

The patch info for that index.

Raises#

IndexError

Raised if index is out of range.