lsst.afw
g3a5ebb7d8a+28b83bf6a5
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lsst
afw
table
wcsUtils.h
Go to the documentation of this file.
1
// -*- lsst-c++ -*-
2
3
/*
4
* LSST Data Management System
5
* Copyright 2018 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
#ifndef LSST_AFW_TABLE_WCSUTILS_H
26
#define LSST_AFW_TABLE_WCSUTILS_H
27
28
#include "
lsst/afw/geom/SkyWcs.h
"
29
30
namespace
lsst
{
31
namespace
afw
{
32
namespace
table
{
33
47
template
<
typename
ReferenceCollection>
48
void
updateRefCentroids
(geom::SkyWcs
const
& wcs, ReferenceCollection& refList);
49
63
template
<
typename
SourceCollection>
64
void
updateSourceCoords
(geom::SkyWcs
const
& wcs, SourceCollection& sourceList,
bool
include_covariance=
true
);
65
79
template
<
typename
t>
80
Eigen::Matrix<t, 2, 2>
calculateCoordCovariance
(geom::SkyWcs
const
& wcs,
lsst::geom::Point2D
center,
81
Eigen::Matrix<t, 2, 2> err,
82
double
factor =
lsst::geom::PI
/ 180.0);
83
98
std::pair<std::tuple<double, double>, std::tuple<double, double, double>>
convertCentroid
(
99
geom::SkyWcs
const
& wcs,
double
x,
double
y,
double
xErr,
double
yErr,
double
xy_covariance = 0);
100
101
}
// namespace table
102
}
// namespace afw
103
}
// namespace lsst
104
105
#endif
// #ifndef LSST_AFW_TABLE_WCSUTILS_H
SkyWcs.h
lsst::afw::table
Definition
table.dox:3
lsst::afw::table::calculateCoordCovariance
Eigen::Matrix< t, 2, 2 > calculateCoordCovariance(geom::SkyWcs const &wcs, lsst::geom::Point2D center, Eigen::Matrix< t, 2, 2 > err, double factor=lsst::geom::PI/180.0)
Calculate covariance for sky coordinates given a pixel centroid and errors.
Definition
wcsUtils.cc:96
lsst::afw::table::updateRefCentroids
void updateRefCentroids(geom::SkyWcs const &wcs, ReferenceCollection &refList)
Update centroids in a collection of reference objects.
Definition
wcsUtils.cc:73
lsst::afw::table::updateSourceCoords
void updateSourceCoords(geom::SkyWcs const &wcs, SourceCollection &sourceList, bool include_covariance=true)
Update sky coordinates in a collection of source objects.
Definition
wcsUtils.cc:123
lsst::afw::table::convertCentroid
std::pair< std::tuple< double, double >, std::tuple< double, double, double > > convertCentroid(geom::SkyWcs const &wcs, double x, double y, double xErr, double yErr, double xy_covariance=0)
Convert an x/y centroid with errors into RA/dec.
Definition
wcsUtils.cc:160
lsst::afw
Definition
imageAlgorithm.dox:1
lsst::geom::Point2D
Point< double, 2 > Point2D
lsst::geom::PI
double constexpr PI
lsst
Generated on
for lsst.afw by
1.17.0