matchesToCatalog

lsst.afw.table.matchesToCatalog(matches, matchMeta)

Denormalise matches into a Catalog of “unpacked matches”.

Parameters:
matches : SimpleMatch

Unpacked matches, i.e. a list of Match objects whose schema has “first” and “second” attributes which, resepectively, contain the reference and source catalog entries, and a “distance” field (the measured distance between the reference and source objects).

matchMeta : PropertySet

Metadata for matches (must have .add attribute).

Returns:
mergedCatalog : lsst.afw.table.BaseCatalog

Catalog of matches (with ref_ and src_ prefix identifiers for referece and source entries, respectively, including alias maps from reference and source catalogs)