copyAliasMapWithPrefix

lsst.afw.table.copyAliasMapWithPrefix(inSchema, outSchema, prefix='')

Copy an alias map from one schema into another.

This copies the alias map of one schema into another, optionally prepending a prefix to both the “from” and “to” names of the alias (the example use case here is for the “match” catalog created by lsst.meas.astrom.denormalizeMatches where prefixes “src_” and “ref_” are added to the source and reference field entries, respectively).

Parameters:
inSchema : lsst.afw.table.Schema

The input schema whose lsst.afw.table.AliasMap is to be copied to outSchema.

outSchema : lsst.afw.table.Schema

The output schema into which the lsst.afw.table.AliasMap from inSchema is to be copied (modified in place).

prefix : str, optional

An optional prefix to add to both the “from” and “to” names of the alias (default is an empty string).

Returns:
outSchema : lsst.afw.table.Schema

The output schema with the alias mappings from inSchema added.