SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AperturePhotometryPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * AperturePhotometryPlugin.cpp
19 *
20 * Created on: Sep 23, 2016
21 * Author: mschefer
22 */
23
25
31
32namespace SourceXtractor {
33
35
36template <typename T>
38
40 plugin_api.getTaskFactoryRegistry()
42
44 "aperture_flux",
45 [](const AperturePhotometryArray &prop) {
46 return prop.getFluxes();
47 },
48 "count",
49 "Aperture flux"
50 );
51
53 "aperture_flux_err",
54 [](const AperturePhotometryArray &prop) {
55 return prop.getFluxErrors();
56 },
57 "count",
58 "Aperture flux error"
59 );
60
62 "aperture_mag",
63 [](const AperturePhotometryArray &prop) {
64 return prop.getMags();
65 },
66 "mag",
67 "Aperture magnitude"
68 );
69
71 "aperture_mag_err",
72 [](const AperturePhotometryArray &prop) {
73 return prop.getMagErrors();
74 },
75 "mag",
76 "Aperture magnitude error"
77 );
78
80 "aperture_flags",
81 [](const AperturePhotometryArray &prop) {
82 return prop.getFlags();
83 },
84 "",
85 "Aperture flags"
86 );
87
88 plugin_api.getOutputRegistry().enableOutput<AperturePhotometryArray>("AperturePhotometry");
89}
90
92 return "AperturePhotometryPlugin";
93}
94
95}
Aperture photometry flag.
Merges all AperturePhotometries into a multidimensional property.
void registerPlugin(PluginAPI &plugin_api) override
Aperture photometry fluxes and magnitudes.
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
void enableOutput(std::string alias_name, bool configurable_output=false)
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
virtual OutputRegistry & getOutputRegistry() const =0
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
Used to register compile-time (static) plugins with the PluginManager.
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin