reindexCatalog

lsst.afw.table.reindexCatalog(catalog, indices, deep=True)

Apply a numpy index array to an afw Catalog

Parameters:
cataloglsst.afw.table.SourceCatalog

Catalog to reindex.

indicesnumpy.ndarray of int

Index array.

deepbool

Whether or not to make a deep copy of the original catalog.

Returns:
newsubclass of lsst.afw.table.BaseCatalog

Reindexed catalog. Records are shallow copies of those in catalog.