LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
home
lsstsw
stack
Linux64
meas_astrom
11.0-1-g60db491
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
boost::shared_ptr<MatchSrcToCatalogue>
Ptr
;
62
typedef
boost::shared_ptr<MatchSrcToCatalogue const>
ConstPtr
;
63
64
MatchSrcToCatalogue
(
afw::table::SimpleCatalog
const
& catSet,
65
afw::table::SourceCatalog
const
& imgSet,
66
CONST_PTR
(
afw::image::Wcs
)
wcs
,
67
afw::geom::Angle
dist
68
);
69
70
//Mutators
71
void
setDist
(
afw::geom::Angle
dist);
72
void
setWcs
(
CONST_PTR
(
afw::image::Wcs
)
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::image::Wcs
)
_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
lsst::meas.astrom.sip::MatchSrcToCatalogue::ConstPtr
boost::shared_ptr< MatchSrcToCatalogue const > ConstPtr
Definition:
MatchSrcToCatalogue.h:62
lsst::meas.astrom.sip::MatchSrcToCatalogue::_catSet
afw::table::SimpleCatalog _catSet
Copy of input catalog.
Definition:
MatchSrcToCatalogue.h:83
lsst::afw::table::Angle
lsst::afw::geom::Angle Angle
Definition:
misc.h:39
lsst::meas.astrom.sip::MatchSrcToCatalogue::_removeOneToMany
void _removeOneToMany()
Definition:
MatchSrcToCatalogue.cc:100
lsst::meas.astrom.sip::MatchSrcToCatalogue::_dist
lsst::afw::geom::Angle _dist
How close must two objects be to match.
Definition:
MatchSrcToCatalogue.h:87
lsst::meas.astrom.sip::MatchSrcToCatalogue::_removeManyToOne
void _removeManyToOne()
Definition:
MatchSrcToCatalogue.cc:125
lsst::meas.astrom.sip::MatchSrcToCatalogue::_match
afw::table::ReferenceMatchVector _match
Definition:
MatchSrcToCatalogue.h:85
wcs
tbl::Key< int > wcs
Definition:
CoaddBoundedField.cc:131
lsst::afw::table::ReferenceMatchVector
std::vector< ReferenceMatch > ReferenceMatchVector
Definition:
fwd.h:97
lsst::afw::image::Wcs
Implementation of the WCS standard for a any projection.
Definition:
Wcs.h:107
lsst::meas.astrom.sip::MatchSrcToCatalogue::setWcs
void setWcs(boost::shared_ptr< afw::image::Wcs const > wcs)
Set a different Wcs solution.
Definition:
MatchSrcToCatalogue.cc:65
image
table::Key< table::Array< Kernel::Pixel > > image
Definition:
FixedKernel.cc:117
lsst::meas.astrom.sip::MatchSrcToCatalogue::MatchSrcToCatalogue
MatchSrcToCatalogue(afw::table::SimpleCatalog const &catSet, afw::table::SourceCatalog const &imgSet, boost::shared_ptr< afw::image::Wcs const > wcs, afw::geom::Angle dist)
Create a list of common objects from a catalogue and an image.
Definition:
MatchSrcToCatalogue.cc:45
lsst::meas.astrom.sip::MatchSrcToCatalogue::_wcs
boost::shared_ptr< lsst::afw::image::Wcs const > _wcs
List of tuples of matching indices.
Definition:
MatchSrcToCatalogue.h:86
lsst::afw::geom::Angle
Definition:
Angle.h:104
lsst::meas.astrom.sip::MatchSrcToCatalogue::findMatches
void findMatches()
Definition:
MatchSrcToCatalogue.cc:78
lsst::afw::table::SortedCatalogT
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
Definition:
fwd.h:55
lsst::meas.astrom.sip::MatchSrcToCatalogue::setDist
void setDist(afw::geom::Angle dist)
Set a new value for the maximum allowed distance between two matching objects (in ra/dec space) ...
Definition:
MatchSrcToCatalogue.cc:57
lsst::meas.astrom.sip::MatchSrcToCatalogue::getMatches
afw::table::ReferenceMatchVector getMatches()
Definition:
MatchSrcToCatalogue.cc:148
lsst::meas.astrom.sip::MatchSrcToCatalogue
Definition:
MatchSrcToCatalogue.h:58
lsst::meas.astrom.sip::MatchSrcToCatalogue::Ptr
boost::shared_ptr< MatchSrcToCatalogue > Ptr
Definition:
MatchSrcToCatalogue.h:61
Angle.h
lsst::meas.astrom.sip::MatchSrcToCatalogue::setImgSrcSet
void setImgSrcSet(afw::table::SourceCatalog const &srcSet)
sourceSet is a vector of pointers to Sources.
Definition:
MatchSrcToCatalogue.cc:70
Match.h
CONST_PTR
#define CONST_PTR(...)
Definition:
base.h:47
lsst::meas.astrom.sip::MatchSrcToCatalogue::_imgSet
afw::table::SourceCatalog _imgSet
Copy of input catalog.
Definition:
MatchSrcToCatalogue.h:84
base.h
lsst::meas.astrom.sip::MatchSrcToCatalogue::setCatSrcSet
void setCatSrcSet(afw::table::SimpleCatalog const &catSet)
Definition:
MatchSrcToCatalogue.cc:74
Generated on Thu Sep 24 2015 02:29:21 for LSSTApplications by
1.8.5