Class MatchSrcToCatalogue

Class Documentation

class MatchSrcToCatalogue

Match a SourceSet of objects with known ra/dec with a SourceSet of objects with known xy positions Take a catalogue of objects with known positions, a catalogue of objects with known xy, and a wcs to convert one xy <> ra/dec. This class then finds the set of objects with common ra/dec.

The simplest usage is to create an object of this class, then access the corresponence sets with getMatchedImgSet() and getMatchedCatSet(). Creating the object automatically calculates the sets of corresponences for you. If you are unhappy with these matches, you can change one or more of your input arguments and redo the match with findMatches()

Using this class has the side effect of updating the coord field of the input SourceCatalog (which may be desirable).

Public Types

typedef std::shared_ptr<MatchSrcToCatalogue> Ptr
typedef std::shared_ptr<MatchSrcToCatalogue const> ConstPtr

Public Functions

lsst::meas::astrom::sip::MatchSrcToCatalogue::MatchSrcToCatalogue(afw::table::SimpleCatalog const & catSet, afw::table::SourceCatalog const & imgSet, CONST_PTR( afw::geom::SkyWcs ) wcs, geom::Angle dist)
void setDist(geom::Angle dist)
void lsst::meas::astrom::sip::MatchSrcToCatalogue::setWcs(CONST_PTR( afw::geom::SkyWcs ) wcs)
void setCatSrcSet(afw::table::SimpleCatalog const &catSet)
void setImgSrcSet(afw::table::SourceCatalog const &srcSet)
void findMatches()
afw::table::ReferenceMatchVector getMatches()