|
typedef PointKey< int > | Point2IKey |
|
typedef PointKey< double > | Point2DKey |
|
typedef ColumnViewT
< ExposureRecord > | ExposureColumnView |
|
typedef ExposureCatalogT
< ExposureRecord > | ExposureCatalog |
|
typedef ExposureCatalogT
< ExposureRecord const > | ConstExposureCatalog |
|
typedef CatalogT< BaseRecord > | BaseCatalog |
|
typedef CatalogT< BaseRecord
const > | ConstBaseCatalog |
|
typedef ColumnViewT< SimpleRecord > | SimpleColumnView |
|
typedef SortedCatalogT
< SimpleRecord > | SimpleCatalog |
|
typedef SortedCatalogT
< SimpleRecord const > | ConstSimpleCatalog |
|
typedef SourceColumnViewT
< SourceRecord > | SourceColumnView |
|
typedef SortedCatalogT
< SourceRecord > | SourceCatalog |
|
typedef SortedCatalogT
< SourceRecord const > | ConstSourceCatalog |
|
typedef ColumnViewT
< AmpInfoRecord > | AmpInfoColumnView |
|
typedef CatalogT< AmpInfoRecord > | AmpInfoCatalog |
|
typedef CatalogT
< AmpInfoRecord const > | ConstAmpInfoCatalog |
|
typedef Match< SimpleRecord,
SimpleRecord > | SimpleMatch |
|
typedef Match< SimpleRecord,
SourceRecord > | ReferenceMatch |
|
typedef Match< SourceRecord,
SourceRecord > | SourceMatch |
|
typedef std::vector< SimpleMatch > | SimpleMatchVector |
|
typedef std::vector
< ReferenceMatch > | ReferenceMatchVector |
|
typedef std::vector< SourceMatch > | SourceMatchVector |
|
typedef boost::int64_t | RecordId |
| Type used for unique IDs for records. More...
|
|
typedef
lsst::afw::detection::Footprint | Footprint |
|
typedef boost::mpl::vector
< RecordId, boost::uint16_t,
boost::int32_t, float, double,
Angle > | ScalarFieldTypes |
| An MPL vector of scalar field types. More...
|
|
typedef boost::mpl::vector
< RecordId, boost::uint16_t,
boost::int32_t, float, double,
Angle, Flag, std::string,
Array< boost::uint16_t >
, Array< int >, Array< float >
, Array< double > > | FieldTypes |
| An MPL vector of all field types. More...
|
|
|
typedef lsst::afw::coord::Coord | Coord |
|
typedef lsst::afw::coord::IcrsCoord | IcrsCoord |
|
typedef lsst::afw::geom::Angle | Angle |
|
|
SourceMatchVector | matchXy (SourceCatalog const &cat1, SourceCatalog const &cat2, double radius, bool closest=true) |
|
SourceMatchVector | matchXy (SourceCatalog const &cat, double radius, bool symmetric=true) |
|
template<typename Cat1 , typename Cat2 > |
std::vector< Match< typename
Cat1::Record, typename
Cat2::Record > > | matchRaDec (Cat1 const &cat1, Cat2 const &cat2, Angle radius, bool closest=true) |
|
template<typename Cat > |
std::vector< Match< typename
Cat::Record, typename
Cat::Record > > | matchRaDec (Cat const &cat, Angle radius, bool symmetric=true) |
|
template<typename Record1 , typename Record2 > |
BaseCatalog | packMatches (std::vector< Match< Record1, Record2 > > const &matches) |
| Return a table representation of a MatchVector that can be used to persist it. More...
|
|
template<typename Cat1 , typename Cat2 > |
std::vector< Match< typename
Cat1::Record, typename
Cat2::Record > > | unpackMatches (BaseCatalog const &matches, Cat1 const &cat1, Cat2 const &cat2) |
| Reconstruct a MatchVector from a BaseCatalog representation of the matches and a pair of catalogs. More...
|
|
|
bool | operator== (CoordKey const &lhs, CoordKey const &rhs) |
| Compare CoordKeys for equality using the constituent Keys. More...
|
|
bool | operator!= (CoordKey const &lhs, CoordKey const &rhs) |
| Compare CoordKeys for equality using the constituent Keys. More...
|
|
|
template<typename RecordT , typename Catalog , typename T > |
boost::shared_ptr< RecordT > | _Catalog_find (Catalog const &catalog, T const &value, Key< T > const &key) |
|
template<typename Catalog , typename T > |
int | _Catalog_lower_bound (Catalog const &catalog, T const &value, Key< T > const &key) |
|
template<typename Catalog , typename T > |
int | _Catalog_upper_bound (Catalog const &catalog, T const &value, Key< T > const &key) |
|
template<typename Catalog , typename T > |
std::pair< int, int > | _Catalog_equal_range (Catalog const &catalog, T const &value, Key< T > const &key) |
|
template<typename Cat1 , typename Cat2 >
std::vector< Match< typename Cat1::Record, typename Cat2::Record> > lsst::afw::table::matchRaDec |
( |
Cat1 const & |
cat1, |
|
|
Cat2 const & |
cat2, |
|
|
Angle |
radius, |
|
|
bool |
closest = true |
|
) |
| |
Compute all tuples (s1,s2,d) where s1 belings to cat1, s2 belongs to cat2 and d, the distance between s1 and s2, is at most radius. If cat1 and cat2 are identical, then this call is equivalent to matchRaDec(cat1,radius,true)
. The match is performed in ra, dec space.
- Parameters
-
[in] | cat1 | first catalog |
[in] | cat2 | second catalog |
[in] | radius | match radius |
[in] | closest | if true then just return the closest match |
This is instantiated for Simple-Simple, Simple-Source, and Source-Source catalog combinations.
SourceMatchVector lsst::afw::table::matchXy |
( |
SourceCatalog const & |
cat1, |
|
|
SourceCatalog const & |
cat2, |
|
|
double |
radius, |
|
|
bool |
closest = true |
|
) |
| |
Compute all tuples (s1,s2,d) where s1 belings to cat1, s2 belongs to cat2 and d, the distance between s1 and s2, in pixels, is at most radius. If cat1 and cat2 are identical, then this call is equivalent to matchXy(cat1,radius,true)
. The match is performed in pixel space (2d cartesian).
- Parameters
-
[in] | cat1 | first catalog |
[in] | cat2 | second catalog |
[in] | radius | match radius (pixels) |
[in] | closest | if true then just return the closest match |
SourceMatchVector lsst::afw::table::matchXy |
( |
SourceCatalog const & |
cat, |
|
|
double |
radius, |
|
|
bool |
symmetric = true |
|
) |
| |
Compute all tuples (s1,s2,d) where s1 != s2, s1 and s2 both belong to cat, and d, the distance between s1 and s2, in pixels, is at most radius. The match is performed in pixel space (2d cartesian).
- Parameters
-
[in] | cat | the catalog to self-match |
[in] | radius | match radius (pixels) |
[in] | symmetric | if cat to true symmetric matches are produced: i.e. if (s1, s2, d) is reported, then so is (s2, s1, d). |
template<typename Record1 , typename Record2 >
BaseCatalog lsst::afw::table::packMatches |
( |
std::vector< Match< Record1, Record2 > > const & |
matches | ) |
|
Return a table representation of a MatchVector that can be used to persist it.
The schema of the returned object has "first" (RecordId), "second" (RecordID), and "distance" (double) fields.
- Parameters
-
[in] | matches | A std::vector of Match objects to convert to table form. |
template<typename Cat1 , typename Cat2 >
std::vector< Match< typename Cat1::Record, typename Cat2::Record> > lsst::afw::table::unpackMatches |
( |
BaseCatalog const & |
matches, |
|
|
Cat1 const & |
cat1, |
|
|
Cat2 const & |
cat2 |
|
) |
| |
Reconstruct a MatchVector from a BaseCatalog representation of the matches and a pair of catalogs.
- Note
- The first and second catalog arguments must be sorted in ascending ID order on input; this will allow us to use binary search algorithms to find the records referred to by the match table.
If an ID cannot be found in the given tables, that pointer will be set to null in the returned match vector.
- Parameters
-
[in] | matches | A normalized BaseCatalog representation, as produced by packMatches. |
[in] | cat1 | A CatalogT containing the records used on the 'first' side of the match, sorted by ascending ID. |
[in] | cat2 | A CatalogT containing the records used on the 'second' side of the match, sorted by ascending ID. May be the same as first. |
This is instantiated for Simple-Simple, Simple-Source, and Source-Source catalog combinations.