23 __all__ = [
"setMatchDistance"]
29 """Set the distance field of the matches in a match list to the distance in radians on the sky 31 @warning the coord field of the source in each match must be correct 33 @param[in,out] matches a list of matches, an instance of lsst.afw.table.ReferenceMatch 34 reads the coord field of the source and reference object of each match 35 writes the distance field of each match 43 sourceCoord = match.first.get(sourceCoordKey)
44 refObjCoord = match.second.get(refObjCoordKey)
45 match.distance = refObjCoord.separation(sourceCoord).asRadians()
def setMatchDistance(matches)