|
lsst.afw g3a5ebb7d8a+28b83bf6a5
|
Functions | |
| __repr__ (self) | |
| __str__ (self) | |
| __getitem__ (self, i) | |
| __setitem__ (self, i, val) | |
| __len__ (self) | |
| clone (self) | |
| packMatches (matches) | |
Variables | |
| clone | |
| first | |
| second | |
| distance | |
| __getitem__ | ( | self, | |
| i ) |
| __setitem__ | ( | self, | |
| i, | |||
| val ) |
| packMatches | ( | matches | ) |
Make a catalog of matches from a sequence of matches.
The catalog contains three fields:
- first: the ID of the first source record in each match
- second: the ID of the second source record in each match
- distance: the distance of each match
Parameters
----------
matches :
Sequence of matches, typically of type SimpleMatch,
ReferenceMatch or SourceMatch. Each element must support:
`.first.getId()`->int, `.second.getId()->int` and
`.distance->float`.
Returns
-------
result :
The catalog of matches.
Notes
-----
This pure python implementation exists as a historical artifact
related to SWIG limitations. It might be practical to wrap the
overloaded C++ functions with pybind11, but there didn't seem much
point.