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:
inSchemalsst.afw.table.Schema

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

outSchemalsst.afw.table.Schema

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

prefixstr, optional

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

Returns:
outSchemalsst.afw.table.Schema

The output schema with the alias mappings from inSchema added.