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

Input source schema that fields will be mapped from.

targetSchema : lsst.afw.atable.Schema

Target schema that fields will be mapped to.

sourcePrefix : str, optional

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

targetPrefix : str, optional

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

Returns:
schema : lsst.afw.table.Schema

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