lsst.meas.astrom
14.0-7-g0d69b06+3
include
lsst
meas
astrom
sip
MatchSrcToCatalogue.h
Go to the documentation of this file.
1
// -*- LSST-C++ -*-
2
3
/*
4
* LSST Data Management System
5
* Copyright 2008, 2009, 2010 LSST Corporation.
6
*
7
* This product includes software developed by the
8
* LSST Project (http://www.lsst.org/).
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the LSST License Statement and
21
* the GNU General Public License along with this program. If not,
22
* see <http://www.lsstcorp.org/LegalNotices/>.
23
*/
24
25
26
#ifndef MATCH_SRC_TO_CATALOGUE
27
#define MATCH_SRC_TO_CATALOGUE
28
29
#include <iostream>
30
#include <cmath>
31
32
#include "
lsst/base.h
"
33
#include "
lsst/pex/exceptions/Runtime.h
"
34
#include "
lsst/afw/table/Match.h
"
35
#include "
lsst/afw/geom/Angle.h
"
36
37
namespace
lsst
{
38
namespace
afw {
39
namespace
image
{
40
class
Wcs;
41
}
42
}
43
namespace
meas {
44
namespace
astrom {
45
namespace
sip
{
46
58
class
MatchSrcToCatalogue
{
59
public
:
60
61
typedef
std::shared_ptr<MatchSrcToCatalogue>
Ptr
;
62
typedef
std::shared_ptr<MatchSrcToCatalogue const>
ConstPtr
;
63
64
MatchSrcToCatalogue
(
afw::table::SimpleCatalog
const
& catSet,
65
afw::table::SourceCatalog
const
& imgSet,
66
CONST_PTR
(
afw::geom::SkyWcs
) wcs,
67
afw::geom::Angle
dist
68
);
69
70
//Mutators
71
void
setDist(
afw::geom::Angle
dist);
72
void
setWcs(
CONST_PTR
(
afw::geom::SkyWcs
) wcs);
73
void
setCatSrcSet(
afw::table::SimpleCatalog
const
& catSet);
74
void
setImgSrcSet(
afw::table::SourceCatalog
const
& srcSet);
75
76
void
findMatches();
77
78
//Accessors
79
afw::table::ReferenceMatchVector
getMatches();
80
81
82
private
:
83
afw::table::SimpleCatalog
_catSet;
84
afw::table::SourceCatalog
_imgSet;
85
afw::table::ReferenceMatchVector
_match;
86
CONST_PTR
(
lsst::afw::geom::SkyWcs
) _wcs;
87
lsst::afw::geom::Angle
_dist;
88
89
void
_removeOneToMany();
90
void
_removeManyToOne();
91
};
92
93
94
95
}}}}
96
97
#endif
98
99
100
Runtime.h
std::shared_ptr
lsst::afw::geom::SkyWcs
lsst::meas::astrom::sip
Definition:
CreateWcsWithSip.h:43
image
afw::table::Key< afw::table::Array< ImagePixelT > > image
lsst::meas::astrom::sip::MatchSrcToCatalogue::Ptr
std::shared_ptr< MatchSrcToCatalogue > Ptr
Definition:
MatchSrcToCatalogue.h:61
CONST_PTR
#define CONST_PTR(...)
lsst::afw::geom::Angle
lsst
lsst::afw::table::SortedCatalogT< SimpleRecord >
lsst::meas::astrom::sip::MatchSrcToCatalogue
Match a SourceSet of objects with known ra/dec with a SourceSet of objects with known xy positions Ta...
Definition:
MatchSrcToCatalogue.h:58
std::vector< ReferenceMatch >
Angle.h
Match.h
base.h
lsst::meas::astrom::sip::MatchSrcToCatalogue::ConstPtr
std::shared_ptr< MatchSrcToCatalogue const > ConstPtr
Definition:
MatchSrcToCatalogue.h:62
Generated on Tue Feb 27 2018 11:51:59 for lsst.meas.astrom by
1.8.13