Template Function lsst::afw::table::matchRaDec(Cat1 const&, Cat2 const&, lsst::geom::Angle, bool)¶
Function Documentation¶
- 
template<typename 
Cat1, typenameCat2>
std::vector<Match<typename Cat1::Record, typename Cat2::Record>>lsst::afw::table::matchRaDec(Cat1 const &cat1, Cat2 const &cat2, lsst::geom::Angle radius, bool closest) Compute all tuples (s1,s2,d) where s1 belings to
cat1, s2 belongs tocat2and d, the distance between s1 and s2, is at mostradius. If cat1 and cat2 are identical, then this call is equivalent tomatchRaDec(cat1,radius). The match is performed in ra, dec space.This is instantiated for Simple-Simple, Simple-Source, and Source-Source catalog combinations.
- Parameters
 [in] cat1: first catalog[in] cat2: second catalog[in] radius: match radius[in] closest: if true then just return the closest match