SourceXtractorPlusPlus  0.15
Please provide a description of the project.
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 
31 namespace SourceXtractor {
32 
43 class VariablePsfStack final : public Psf {
44 public:
49  setup(pFits);
50  selfTest();
51  };
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 
91 private:
93 
96 
98 
99  long m_nrows;
100 
107 
108  std::vector<std::string> m_components = {"X_IMAGE", "Y_IMAGE"};
109 
110  /*
111  * Check the file, load the positions and so on
112  */
114 
115  /*
116  * consistency of the stackedPSF
117  */
118  void selfTest();
119 };
120 
121 } // namespace SourceXtractor
122 
123 #endif //_SEIMPLEMENTATION_PSF_VARIABLEPSFSTACK_H_
SourceXtractor::VariablePsfStack::m_nrows
long m_nrows
Definition: VariablePsfStack.h:99
SourceXtractor::VariablePsfStack::getHeight
int getHeight() const
Definition: VariablePsfStack.h:68
std::shared_ptr< CCfits::FITS >
SourceXtractor::VariablePsfStack::getComponents
const std::vector< std::string > & getComponents() const
Definition: VariablePsfStack.h:82
std::vector< std::string >
SourceXtractor::VariablePsfStack::m_gridy_values
std::vector< int > m_gridy_values
Definition: VariablePsfStack.h:106
SourceXtractor::VariablePsfStack::selfTest
void selfTest()
Definition: VariablePsfStack.cpp:94
SourceXtractor::VariablePsfStack::m_gridx_values
std::vector< int > m_gridx_values
Definition: VariablePsfStack.h:105
VectorImage.h
SourceXtractor::VariablePsfStack::m_pFits
std::shared_ptr< CCfits::FITS > m_pFits
Definition: VariablePsfStack.h:92
SourceXtractor::VariablePsfStack::mm_pixel_sampling
double mm_pixel_sampling
Definition: VariablePsfStack.h:97
SourceXtractor::VariablePsfStack::m_psf_size
int m_psf_size
Definition: VariablePsfStack.h:94
SourceXtractor::VariablePsfStack::m_dec_values
std::vector< SeFloat > m_dec_values
Definition: VariablePsfStack.h:102
SourceXtractor
Definition: Aperture.h:30
SourceXtractor::VariablePsfStack::m_grid_offset
int m_grid_offset
Definition: VariablePsfStack.h:95
SourceXtractor::VariablePsfStack::m_components
std::vector< std::string > m_components
Definition: VariablePsfStack.h:108
SourceXtractor::Psf
Definition: Psf.h:27
SourceXtractor::VariablePsfStack::VariablePsfStack
VariablePsfStack(std::shared_ptr< CCfits::FITS > pFits)
Definition: VariablePsfStack.h:48
Psf.h
SourceXtractor::VariablePsfStack::m_ra_values
std::vector< SeFloat > m_ra_values
Definition: VariablePsfStack.h:101
SourceXtractor::VariablePsfStack::m_x_values
std::vector< SeFloat > m_x_values
Definition: VariablePsfStack.h:103
SourceXtractor::VariablePsfStack::~VariablePsfStack
virtual ~VariablePsfStack()=default
SourceXtractor::VariablePsfStack
Definition: VariablePsfStack.h:43
SourceXtractor::VariablePsfStack::m_y_values
std::vector< SeFloat > m_y_values
Definition: VariablePsfStack.h:104
SourceXtractor::VariablePsfStack::getPsf
virtual std::shared_ptr< VectorImage< SeFloat > > getPsf(const std::vector< double > &values) const
Definition: VariablePsfStack.cpp:118
SourceXtractor::VariablePsfStack::getPixelSampling
double getPixelSampling() const
Definition: VariablePsfStack.h:75
SourceXtractor::VariablePsfStack::setup
void setup(std::shared_ptr< CCfits::FITS > pFits)
Definition: VariablePsfStack.cpp:32
SourceXtractor::VariablePsfStack::getWidth
int getWidth() const
Definition: VariablePsfStack.h:61