makeMergedSchema

lsst.afw.table.makeMergedSchema(sourceSchema, targetSchema, sourcePrefix=None, targetPrefix=None)

Return a schema that is a deep copy of a mapping between source and target schemas.

Parameters:
sourceSchemalsst.afw.table.Schema

Input source schema that fields will be mapped from.

targetSchemalsst.afw.atable.Schema

Target schema that fields will be mapped to.

sourcePrefixstr, optional

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

targetPrefixstr, optional

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

Returns:
schemalsst.afw.table.Schema

Schema that is the result of the mapping between source and target schemas.