#include <SdssCentroid.h>
Definition at line 98 of file SdssCentroid.h.
◆ Control
◆ SdssCentroidTransform()
Definition at line 508 of file SdssCentroid.cc.
514 if (
mapper.getInputSchema().getNames().count(
mapper.getInputSchema().join(
name, flag.name)) == 0)
516 afw::table::Key<afw::table::Flag>
key =
517 mapper.getInputSchema().find<afw::table::Flag>(
name +
"_" + flag.name).
key;
◆ checkCatalogSize()
Ensure that catalogs have the same size.
- Parameters
-
[in] | cat1 | Catalog for comparison |
[in] | cat2 | Catalog for comparison |
- Exceptions
-
LengthError | Catalog sizes do not match |
Definition at line 102 of file Transform.h.
103 if (cat1.size() != cat2.size()) {
104 throw LSST_EXCEPT(pex::exceptions::LengthError,
"Catalog size mismatch");
◆ operator()()
Implements lsst::meas::base::BaseTransform.
Definition at line 144 of file CentroidUtilities.cc.
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>() *
◆ _name
The documentation for this class was generated from the following files:
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/meas_base/20.0.0/include/lsst/meas/base/SdssCentroid.h
- /j/snowflake/release/lsstsw/stack/1a1d771/Linux64/meas_base/20.0.0/src/SdssCentroid.cc
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)