SourceXtractorPlusPlus
0.19
SourceXtractor++, the next generation SExtractor
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
SEImplementation
Output
LdacOutput.h
Go to the documentation of this file.
1
/*
2
* LdacOutput.h
3
*
4
* Created on: Feb 10, 2022
5
* Author: mschefer
6
*/
7
8
#ifndef _SEIMPLEMENTATION_OUTPUT_LDACOUTPUT_H_
9
#define _SEIMPLEMENTATION_OUTPUT_LDACOUTPUT_H_
10
11
#include "
Table/FitsWriter.h
"
12
13
#include "
SEImplementation/Output/FlushableOutput.h
"
14
15
namespace
SourceXtractor {
16
17
class
LdacOutput
:
public
FlushableOutput
{
18
19
public
:
20
LdacOutput
(
const
std::string
&
filename
,
SourceToRowConverter
source_to_row,
size_t
flush_size)
21
:
FlushableOutput
(source_to_row, flush_size),
m_filename
(filename),
m_part_nb
(0),
m_rms
(0),
m_gain
(0) {
22
}
23
24
void
nextPart
()
override
;
25
26
void
outputSource
(
const
SourceInterface
& source)
override
;
27
28
protected
:
29
void
writeRows
(
const
std::vector<Euclid::Table::Row>
& rows)
override
{
30
Euclid::Table::Table
table {rows};
31
m_fits_writer
->addData(table);
32
}
33
34
private
:
35
void
writeHeaders
();
36
37
std::string
m_filename
;
38
int
m_part_nb
;
39
40
std::shared_ptr<Euclid::Table::FitsWriter>
m_fits_writer
;
41
42
std::map<std::string, MetadataEntry>
m_image_metadata
{};
43
DetectionImage::PixelType
m_rms
;
44
double
m_gain
;
45
};
46
47
}
48
49
#endif
/* _SEIMPLEMENTATION_OUTPUT_LDACOUTPUT_H_ */
SourceXtractor::LdacOutput::m_fits_writer
std::shared_ptr< Euclid::Table::FitsWriter > m_fits_writer
Definition:
LdacOutput.h:40
std::shared_ptr
SourceXtractor::FlushableOutput
Definition:
FlushableOutput.h:17
std::function< Euclid::Table::Row(const SourceInterface &)>
SourceXtractor::LdacOutput::m_filename
std::string m_filename
Definition:
LdacOutput.h:37
SourceXtractor::Image::PixelType
T PixelType
Definition:
Image.h:47
FlushableOutput.h
SourceXtractor::LdacOutput::m_part_nb
int m_part_nb
Definition:
LdacOutput.h:38
std::map
STL class.
SourceXtractor::LdacOutput::LdacOutput
LdacOutput(const std::string &filename, SourceToRowConverter source_to_row, size_t flush_size)
Definition:
LdacOutput.h:20
std::string
STL class.
conf.filename
string filename
Definition:
conf.py:65
SourceXtractor::LdacOutput::outputSource
void outputSource(const SourceInterface &source) override
Definition:
LdacOutput.cpp:117
SourceXtractor::LdacOutput::m_image_metadata
std::map< std::string, MetadataEntry > m_image_metadata
Definition:
LdacOutput.h:42
Euclid::Table::Table
std::vector< Euclid::Table::Row >
SourceXtractor::LdacOutput::m_gain
double m_gain
Definition:
LdacOutput.h:44
SourceXtractor::LdacOutput
Definition:
LdacOutput.h:17
SourceXtractor::LdacOutput::writeRows
void writeRows(const std::vector< Euclid::Table::Row > &rows) override
Definition:
LdacOutput.h:29
SourceXtractor::LdacOutput::writeHeaders
void writeHeaders()
Definition:
LdacOutput.cpp:142
FitsWriter.h
SourceXtractor::SourceInterface
The SourceInterface is an abstract "source" that has properties attached to it.
Definition:
SourceInterface.h:46
SourceXtractor::LdacOutput::nextPart
void nextPart() override
Definition:
LdacOutput.cpp:185
SourceXtractor::LdacOutput::m_rms
DetectionImage::PixelType m_rms
Definition:
LdacOutput.h:43
Generated by
1.8.5