SourceXtractorPlusPlus
0.13
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
SEImplementation
src
lib
Plugin
AperturePhotometry
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
24
#include "
SEFramework/Plugin/StaticPlugin.h
"
25
26
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometry.h
"
27
#include "
SEImplementation/Plugin/AperturePhotometry/ApertureFlag.h
"
28
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometryArray.h
"
29
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometryTaskFactory.h
"
30
#include "
SEImplementation/Plugin/AperturePhotometry/AperturePhotometryPlugin.h
"
31
32
namespace
SourceXtractor {
33
34
static
StaticPlugin<AperturePhotometryPlugin>
aperture_photometry_plugin
;
35
36
template
<
typename
T>
37
using
NdArray
=
Euclid::NdArray::NdArray<T>
;
38
39
void
AperturePhotometryPlugin::registerPlugin
(
PluginAPI
&plugin_api) {
40
plugin_api.
getTaskFactoryRegistry
()
41
.
registerTaskFactory
<
AperturePhotometryTaskFactory
,
AperturePhotometry
,
ApertureFlag
,
AperturePhotometryArray
>();
42
43
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AperturePhotometryArray
,
NdArray<SeFloat>
>(
44
"aperture_flux"
,
45
[](
const
AperturePhotometryArray
&prop) {
46
return
prop.getFluxes();
47
},
48
"count"
,
49
"Aperture flux"
50
);
51
52
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AperturePhotometryArray
, NdArray<SeFloat>>(
53
"aperture_flux_err"
,
54
[](
const
AperturePhotometryArray
&prop) {
55
return
prop.getFluxErrors();
56
},
57
"count"
,
58
"Aperture flux error"
59
);
60
61
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AperturePhotometryArray
, NdArray<SeFloat>>(
62
"aperture_mag"
,
63
[](
const
AperturePhotometryArray
&prop) {
64
return
prop.getMags();
65
},
66
"mag"
,
67
"Aperture magnitude"
68
);
69
70
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AperturePhotometryArray
, NdArray<SeFloat>>(
71
"aperture_mag_err"
,
72
[](
const
AperturePhotometryArray
&prop) {
73
return
prop.getMagErrors();
74
},
75
"mag"
,
76
"Aperture magnitude error"
77
);
78
79
plugin_api.
getOutputRegistry
().
registerColumnConverter
<
AperturePhotometryArray
,
NdArray<int64_t>
>(
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
91
std::string
AperturePhotometryPlugin::getIdString
()
const
{
92
return
"AperturePhotometryPlugin"
;
93
}
94
95
}
ApertureFlag.h
SourceXtractor::aperture_photometry_plugin
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin
Definition:
AperturePhotometryPlugin.cpp:34
SourceXtractor::OutputRegistry::enableOutput
void enableOutput(std::string alias_name, bool configurable_output=false)
Definition:
OutputRegistry.h:141
SourceXtractor::PluginAPI::getOutputRegistry
virtual OutputRegistry & getOutputRegistry() const =0
AperturePhotometryArray.h
SourceXtractor::AperturePhotometry
Aperture photometry fluxes and magnitudes.
Definition:
AperturePhotometry.h:38
Euclid::NdArray::NdArray
AperturePhotometryPlugin.h
SourceXtractor::TaskFactoryRegistry::registerTaskFactory
void registerTaskFactory()
Definition:
TaskFactoryRegistry.h:51
SourceXtractor::AperturePhotometryTaskFactory
Definition:
AperturePhotometryTaskFactory.h:48
std::string
STL class.
SourceXtractor::AperturePhotometryPlugin::registerPlugin
virtual void registerPlugin(PluginAPI &plugin_api) override
Definition:
AperturePhotometryPlugin.cpp:39
SourceXtractor::AperturePhotometryPlugin::getIdString
virtual std::string getIdString() const override
Definition:
AperturePhotometryPlugin.cpp:91
AperturePhotometryTaskFactory.h
StaticPlugin.h
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition:
PluginAPI.h:39
SourceXtractor::StaticPlugin
Used to register compile-time (static) plugins with the PluginManager.
Definition:
StaticPlugin.h:38
SourceXtractor::NdArray
Euclid::NdArray::NdArray< T > NdArray
Definition:
VignetPlugin.h:37
SourceXtractor::ApertureFlag
Aperture photometry flag.
Definition:
ApertureFlag.h:38
SourceXtractor::AperturePhotometryArray
Merges all AperturePhotometries into a multidimensional property.
Definition:
AperturePhotometryArray.h:40
AperturePhotometry.h
SourceXtractor::PluginAPI::getTaskFactoryRegistry
virtual TaskFactoryRegistry & getTaskFactoryRegistry() const =0
SourceXtractor::OutputRegistry::registerColumnConverter
void registerColumnConverter(std::string column_name, ColumnConverter< PropertyType, OutType > converter, std::string column_unit="", std::string column_description="")
Definition:
OutputRegistry.h:46
Generated by
1.8.5