Template Function lsst::afw::table::matchRaDec(Cat1 const&, Cat2 const&, lsst::geom::Angle, MatchControl const&)¶
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, MatchControl const &mc = MatchControl()) - Parameters
cat1
: first catalogcat2
: second catalogradius
: match radiusmc
: how to do the matching (obeys MatchControl::findOnlyClosest)
Compute all tuples (s1,s2,d) where s1 belings to
cat1
, s2 belongs tocat2
and 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.