LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
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. More...
#include <MatchSrcToCatalogue.h>
Public Types | |
typedef std::shared_ptr< MatchSrcToCatalogue > | Ptr |
typedef std::shared_ptr< MatchSrcToCatalogue const > | ConstPtr |
Public Member Functions | |
MatchSrcToCatalogue (afw::table::SimpleCatalog const &catSet, afw::table::SourceCatalog const &imgSet, std::shared_ptr< afw::geom::SkyWcs const > wcs, geom::Angle dist) | |
Create a list of common objects from a catalogue and an image. | |
void | setDist (geom::Angle dist) |
Set a new value for the maximum allowed distance between two matching objects (in ra/dec space) | |
void | setWcs (std::shared_ptr< afw::geom::SkyWcs const > wcs) |
Set a different Wcs solution. | |
void | setCatSrcSet (afw::table::SimpleCatalog const &catSet) |
void | setImgSrcSet (afw::table::SourceCatalog const &srcSet) |
sourceSet is a vector of pointers to Sources. | |
void | findMatches () |
afw::table::ReferenceMatchVector | getMatches () |
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).
Definition at line 57 of file MatchSrcToCatalogue.h.
typedef std::shared_ptr<MatchSrcToCatalogue const> lsst::meas::astrom::sip::MatchSrcToCatalogue::ConstPtr |
Definition at line 60 of file MatchSrcToCatalogue.h.
Definition at line 59 of file MatchSrcToCatalogue.h.
lsst::meas::astrom::sip::MatchSrcToCatalogue::MatchSrcToCatalogue | ( | afw::table::SimpleCatalog const & | catSet, |
afw::table::SourceCatalog const & | imgSet, | ||
std::shared_ptr< afw::geom::SkyWcs const > | wcs, | ||
geom::Angle | dist ) |
Create a list of common objects from a catalogue and an image.
Take a catSet, i.e a SimpleCatalog giving the true positions of objects in ra/dec space, and an imageSet, i.e. a SourceCatalog of the pixel positions of sources detected on a CCD image. Use the Wcs to calculate the ra/dec of the image source, and then find the subset of objects withcommon positions in the two sets. The returned list of matches is one-to-one, i.e no object in the catalogue is matched twice, and no object in the imageSet is matched twice.
catSet | List of catalogue positions with known ra and dec |
imgSet | List of image positions with known x and y |
wcs | A Wcs object to convert from xy to radec |
dist | How close to objects need to be in order to be considered the same |
Definition at line 49 of file MatchSrcToCatalogue.cc.
void lsst::meas::astrom::sip::MatchSrcToCatalogue::findMatches | ( | ) |
Definition at line 74 of file MatchSrcToCatalogue.cc.
afw::table::ReferenceMatchVector lsst::meas::astrom::sip::MatchSrcToCatalogue::getMatches | ( | ) |
Definition at line 139 of file MatchSrcToCatalogue.cc.
void lsst::meas::astrom::sip::MatchSrcToCatalogue::setCatSrcSet | ( | afw::table::SimpleCatalog const & | catSet | ) |
Definition at line 72 of file MatchSrcToCatalogue.cc.
void lsst::meas::astrom::sip::MatchSrcToCatalogue::setDist | ( | geom::Angle | dist | ) |
Set a new value for the maximum allowed distance between two matching objects (in ra/dec space)
Definition at line 59 of file MatchSrcToCatalogue.cc.
void lsst::meas::astrom::sip::MatchSrcToCatalogue::setImgSrcSet | ( | afw::table::SourceCatalog const & | srcSet | ) |
sourceSet is a vector of pointers to Sources.
Definition at line 70 of file MatchSrcToCatalogue.cc.
void lsst::meas::astrom::sip::MatchSrcToCatalogue::setWcs | ( | std::shared_ptr< afw::geom::SkyWcs const > | wcs | ) |
Set a different Wcs solution.
Definition at line 67 of file MatchSrcToCatalogue.cc.