148 CentroidResultKey centroidResultKey(inputCatalog.getSchema()[
_name]);
150 afw::table::SourceCatalog::const_iterator inSrc = inputCatalog.begin();
153 for (; inSrc != inputCatalog.end() && outSrc != outputCatalog.end(); ++inSrc, ++outSrc) {
154 CentroidResult centroidResult = centroidResultKey.get(*inSrc);
156 _coordKey.
set(*outSrc,
wcs.pixelToSky(centroidResult.getCentroid()));
158 if (centroidResultKey.getCentroidErr().isValid()) {
159 CentroidCov centroidCov = centroidResult.getCentroidErr();
164 _coordErrKey.
set(*outSrc, (
transform * centroidResult.getCentroidErr().cast<
double>() *
166 .cast<ErrElement>());
void set(BaseRecord &record, Eigen::Matrix< T, N, N > const &value) const override
Set a covariance matrix in the given record (uses only the lower triangle of the given matrix) ...
AngleUnit constexpr radians
constant with units of radians
table::Key< table::Array< std::uint8_t > > wcs
Eigen::Matrix< ErrElement, 2, 2, Eigen::DontAlign > CentroidCov
void set(BaseRecord &record, lsst::geom::SpherePoint const &value) const override
Set an lsst::geom::SpherePoint in the given record.
CatalogIterator< typename Internal::iterator > iterator