25#ifndef LSST_AFW_TABLE_WCSUTILS_H
26#define LSST_AFW_TABLE_WCSUTILS_H
47template <
typename ReferenceCollection>
63template <
typename SourceCollection>
64void updateSourceCoords(geom::SkyWcs
const& wcs, SourceCollection& sourceList,
bool include_covariance=
true);
91 Eigen::Matrix<t, 2, 2> err,
110std::pair<std::tuple<double, double>, std::tuple<double, double, double>>
convertCentroid(
111 geom::SkyWcs
const& wcs,
double x,
double y,
double xErr,
double yErr,
double xy_covariance = 0);
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 the local tangent-plane sky covariance for a pixel centroid.
void updateRefCentroids(geom::SkyWcs const &wcs, ReferenceCollection &refList)
Update centroids in a collection of reference objects.
void updateSourceCoords(geom::SkyWcs const &wcs, SourceCollection &sourceList, bool include_covariance=true)
Update sky coordinates in a collection of source objects.
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, propagating the centroid uncertainty to the local ta...
Point< double, 2 > Point2D