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.denormalizeMatcheswhere prefixessrc_andref_are added to the source and reference field entries, respectively).Parameters: - inSchema :
lsst.afw.table.Schema The input schema whose
lsst.afw.table.AliasMapis to be copied tooutSchema.- outSchema :
lsst.afw.table.Schema The output schema into which the
lsst.afw.table.AliasMapfrominSchemais 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
inSchemaadded.
- inSchema :