SourceXtractorPlusPlus  0.15
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_
const std::vector< std::string > & getComponents() const
std::vector< std::string > m_components
VariablePsfStack(std::shared_ptr< CCfits::FITS > pFits)
virtual ~VariablePsfStack()=default
std::vector< SeFloat > m_x_values
std::vector< SeFloat > m_y_values
void setup(std::shared_ptr< CCfits::FITS > pFits)
virtual std::shared_ptr< VectorImage< SeFloat > > getPsf(const std::vector< double > &values) const
std::shared_ptr< CCfits::FITS > m_pFits
std::vector< SeFloat > m_dec_values
std::vector< SeFloat > m_ra_values