SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
AutoPhotometryPlugin.cpp
Go to the documentation of this file.
1
17/*
18 * AutoPhotometryPlugin.cpp
19 *
20 * Created on: Jul 18, 2016
21 * Author: mkuemmel@usm.lmu.de
22 */
23
25
31
32namespace SourceXtractor {
33
35
37 plugin_api.getTaskFactoryRegistry()
39
40 plugin_api.getOutputRegistry().registerColumnConverter<AutoPhotometryArray, std::vector<SeFloat>>(
41 "auto_flux",
42 [](const AutoPhotometryArray& prop){
43 return prop.getFluxes();
44 },
45 "count",
46 "Flux within a Kron-like elliptical aperture"
47 );
48
49 plugin_api.getOutputRegistry().registerColumnConverter<AutoPhotometryArray, std::vector<SeFloat>>(
50 "auto_flux_err",
51 [](const AutoPhotometryArray& prop){
52 return prop.getFluxErrors();
53 },
54 "count",
55 "Flux error within a Kron-like elliptical aperture"
56 );
57
58 plugin_api.getOutputRegistry().registerColumnConverter<AutoPhotometryArray, std::vector<SeFloat>>(
59 "auto_mag",
60 [](const AutoPhotometryArray& prop){
61 return prop.getMags();
62 },
63 "mag",
64 "Magnitude within a Kron-like elliptical aperture"
65 );
66
67 plugin_api.getOutputRegistry().registerColumnConverter<AutoPhotometryArray, std::vector<SeFloat>>(
68 "auto_mag_err",
69 [](const AutoPhotometryArray& prop){
70 return prop.getMagErrors();
71 },
72 "mag",
73 "Magnitude error within a Kron-like elliptical aperture"
74 );
75
76 plugin_api.getOutputRegistry().registerColumnConverter<AutoPhotometryArray, std::vector<int64_t >>(
77 "auto_flags",
78 [](const AutoPhotometryArray& prop){
79 return flags2long(prop.getFlags());
80 },
81 "",
82 "Flags for the Kron-like elliptical aperture photometry"
83 );
84
85 plugin_api.getOutputRegistry().enableOutput<AutoPhotometryArray>("AutoPhotometry");
86}
87
89 return "AutoPhotometryPlugin";
90}
91
92}
std::string getIdString() const override
void registerPlugin(PluginAPI &plugin_api) override
Auto photometry flux and magnitude.
This interface is given to the plugin to let it access object instances from the framework.
Definition PluginAPI.h:40
constexpr int64_t flags2long(const Flags &a)
Definition SourceFlags.h:90
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin