copyIntoCatalog

lsst.afw.table.copyIntoCatalog(catalog, target, sourceSchema=None, sourcePrefix=None, targetPrefix=None)

Copy entries from one Catalog into another.

Parameters:
catalog : lsst.afw.table.base.Catalog

Source catalog to be copied from.

target : lsst.afw.table.base.Catalog

Target catalog to be copied to (edited in place).

sourceSchema : lsst.afw.table.Schema, optional

Schema of source catalog.

sourcePrefix : str, optional

If set, only those keys with that prefix will be copied.

targetPrefix : str, optional

If set, prepend it to the copied (target) key name

Returns:
target : lsst.afw.table.base.Catalog

Target catalog that is edited in place.