LSST Applications g0f08755f38+05b4b46b2c,g1653933729+a905cd61c3,g168dd56ebc+a905cd61c3,g1a2382251a+526767c3b0,g20f6ffc8e0+05b4b46b2c,g217e2c1bcf+f8df405040,g28da252d5a+e530e4405a,g2bbee38e9b+e060cc3e60,g2bc492864f+e060cc3e60,g32e5bea42b+7044b77928,g347aa1857d+e060cc3e60,g35bb328faa+a905cd61c3,g3a166c0a6a+e060cc3e60,g3bd4b5ce2c+9af3f3d415,g3e281a1b8c+2bff41ced5,g3e8969e208+a905cd61c3,g414038480c+882f223820,g41af890bb2+f72d0f2eea,g43bc871e57+ad86a2d9e2,g78460c75b0+4ae99bb757,g80478fca09+8d821d1b28,g82479be7b0+ec26a56c2d,g858d7b2824+05b4b46b2c,g9125e01d80+a905cd61c3,ga5288a1d22+64e5455051,gb58c049af0+84d1b6ec45,gc28159a63d+e060cc3e60,gc5452a3dca+b82ec7cc4c,gcab2d0539d+01da5adb7a,gcf0d15dbbd+56822d21ae,gda6a2b7d83+56822d21ae,gdaeeff99f8+686ef0dd99,ge79ae78c31+e060cc3e60,gef2f8181fd+f2c81e61ee,gf0baf85859+f9edac6842,gf1e97e5484+3a635bd7af,gfa517265be+05b4b46b2c,gfa999e8aa5+d85414070d,w.2025.01
LSST Data Management Base Package
|
Abstract base class for all C++ measurement transformations. More...
#include <Transform.h>
Public Member Functions | |
BaseTransform (std::string const &name) | |
virtual | ~BaseTransform () |
virtual void | operator() (afw::table::SourceCatalog const &inputCatalog, afw::table::BaseCatalog &outputCatalog, afw::geom::SkyWcs const &wcs, afw::image::PhotoCalib const &photoCalib) const =0 |
Protected Member Functions | |
void | checkCatalogSize (afw::table::BaseCatalog const &cat1, afw::table::BaseCatalog const &cat2) const |
Ensure that catalogs have the same size. | |
Protected Attributes | |
std::string | _name |
Abstract base class for all C++ measurement transformations.
Measurement plugins return results in raw, uncalibrated units (eg fluxes or positions in pixels). The transformation system provides a mechanism for post-processing those results into a calibrated form (magnitudes, celestial coordinates, etc).
A measurement transformation should derive from BaseTransform. It should implement a constructor which takes three arguments:
Control
object describing the configuration of the measurement plugin.std::string
);lsst::afw::table::SchemaMapper
which links the input and output catalogs;The constructor should use the SchemaMapper to map fields from the input to output schemas and add additional keys to the output as required. For example:
Derived classes should also implement operator()
following the interface below. This will be called with a catalog containing the results of the measurement plugin and a catalog to be populated with transformed quantities, as well as WCS and calibration information. For example:
Note that it is safe to assume that both catalogs passed to operator()
are contiguous in memory. It is good practice to ensure that they are equal in size: this may be conveniently achieved by calling BaseTransform::checkCatalogSize()
.
operator()
may throw LengthError
if the transformation is impossible to complete. In this case, the contents of outputCatalog
is not guaranteed.
Definition at line 86 of file Transform.h.
|
inlineexplicit |
Definition at line 88 of file Transform.h.
|
inlinevirtual |
Definition at line 89 of file Transform.h.
|
inlineprotected |
Ensure that catalogs have the same size.
[in] | cat1 | Catalog for comparison |
[in] | cat2 | Catalog for comparison |
LengthError | Catalog sizes do not match |
Definition at line 102 of file Transform.h.
|
pure virtual |
|
protected |
Definition at line 107 of file Transform.h.