SourceXtractorPlusPlus
0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
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
AperturePhotometryArray.h
AperturePhotometryPlugin.h
AperturePhotometryTaskFactory.h
AperturePhotometry.h
StaticPlugin.h
std::string
Euclid::NdArray::NdArray
SourceXtractor::ApertureFlag
Aperture photometry flag.
Definition
ApertureFlag.h:38
SourceXtractor::AperturePhotometryArray
Merges all AperturePhotometries into a multidimensional property.
Definition
AperturePhotometryArray.h:40
SourceXtractor::AperturePhotometryPlugin::registerPlugin
void registerPlugin(PluginAPI &plugin_api) override
Definition
AperturePhotometryPlugin.cpp:39
SourceXtractor::AperturePhotometryPlugin::getIdString
std::string getIdString() const override
Definition
AperturePhotometryPlugin.cpp:91
SourceXtractor::AperturePhotometryTaskFactory
Definition
AperturePhotometryTaskFactory.h:48
SourceXtractor::AperturePhotometry
Aperture photometry fluxes and magnitudes.
Definition
AperturePhotometry.h:38
SourceXtractor::PluginAPI
This interface is given to the plugin to let it access object instances from the framework.
Definition
PluginAPI.h:40
std::function
Euclid::NdArray
SourceXtractor
Definition
Aperture.h:30
SourceXtractor::aperture_photometry_plugin
static StaticPlugin< AperturePhotometryPlugin > aperture_photometry_plugin
Definition
AperturePhotometryPlugin.cpp:34
Generated by
1.10.0