SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
VariablePsfStack.h
Go to the documentation of this file.
1
17/*
18 * VariablePsf.h
19 *
20 * Created on: Jun 25, 2018
21 * Author:
22 */
23
24#ifndef _SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
25#define _SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
26
27#include <CCfits/CCfits>
29#include <SEFramework/Psf/Psf.h>
30
31namespace SourceXtractor {
32
43class VariablePsfStack final : public Psf {
44public:
52
56 virtual ~VariablePsfStack() = default;
57
61 int getWidth() const {
62 return m_psf_size;
63 };
64
68 int getHeight() const {
69 return m_psf_size;
70 };
71
75 double getPixelSampling() const {
76 return mm_pixel_sampling;
77 };
78
83 return m_components;
84 };
85
90
91private:
94
97
99
101
108
109 std::vector<std::string> m_components = {"X_IMAGE", "Y_IMAGE"};
110
111 /*
112 * Check the file, load the positions and so on
113 */
115
116 /*
117 * consistency of the stackedPSF
118 */
119 void selfTest();
120};
121
122} // namespace SourceXtractor
123
124#endif //_SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
std::vector< SeFloat > m_ra_values
virtual std::shared_ptr< VectorImage< SeFloat > > getPsf(const std::vector< double > &values) const
virtual ~VariablePsfStack()=default
void setup(std::shared_ptr< CCfits::FITS > pFits)
std::vector< std::string > m_components
VariablePsfStack(std::shared_ptr< CCfits::FITS > pFits)
std::vector< double > m_gridx_values
std::shared_ptr< CCfits::FITS > m_pFits
std::vector< SeFloat > m_x_values
std::vector< double > m_gridy_values
const std::vector< std::string > & getComponents() const
std::vector< SeFloat > m_dec_values
std::vector< SeFloat > m_y_values