Coverage for python/lsst/meas/astrom/denormalizeMatches.py : 85%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Generate a denormalized Catalog of matches
This is intended for writing matches in a convenient way. Normally we write matches in a 'normalized' form: recording only the join table (reference ID, source ID) to minimise space (the reference and source catalogs should both be available separately, so the only extra information we need is how to join them). However, using that can be a pain, since it requires reading each catalog and doing the join.
This function generates a Catalog containing all the information in the matches. The reference catalog entries are in columns with "ref_" prepended, while the source catalog entries are in columns with "src_" prepended. The distance between the matches is in a column named "distance".
Parameters ---------- matches : `list` of `lsst.afw.table.ReferenceMatch` List of matches between reference catalog and source catalog. matchMeta : `lsst.daf.base.PropertyList` Matching metadata to write in catalog.
Returns ------- catalog : `lsst.afw.table.BaseCatalog` Catalog containing matchlist entries.
See also -------- `lsst.afw.table.packMatches` """ raise RuntimeError("No matches provided.")
catalog.getTable().setMetadata(matchMeta)
|