File MatchSrcToCatalogue.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace meas
namespace astrom
namespace sip
class MatchSrcToCatalogue
#include <MatchSrcToCatalogue.h>

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()

Private Functions

CONST_PTR(afw::geom::SkyWcs)

List of tuples of matching indices.

void _removeOneToMany()
void _removeManyToOne()

Private Members

afw::table::SimpleCatalog _catSet

Copy of input catalog.

afw::table::SourceCatalog _imgSet

Copy of input catalog.

afw::table::ReferenceMatchVector _match
geom::Angle _dist

How close must two objects be to match.