FitsFile.h
Go to the documentation of this file.
1 /* -*- mode:c++ -*- */
2 
14 #ifndef _FitsFile_h
15 #define _FitsFile_h
16 
17 #include "FitsFileBase.h"
18 
19 #ifndef _MSC_VER
20 #include <inttypes.h>
21 #endif
22 
23 #include <vector>
24 
25 namespace hippodraw {
26 
39 class FitsFile : public FitsFileBase {
40 
41 private:
42 
46  int fillFromTableColumn ( std::vector < double > & v,
47  int column );
48 
53  int fillFromImage ( std::vector < double > & vec, unsigned int axis );
54 
58  int fillColumnNamesFromTable ( std::vector < std::string > & labels );
59 
62  int fillColumnNamesFromImage ( std::vector < std::string > & labels );
63 
79  int fillIntVectorFromColumn ( std::vector < int > & vec, int column );
80 
81  public:
82 
84  FitsFile ( const std::string & filename , bool write = false );
85 
89  void fillHDUNames ( std::vector < std::string > & names );
90 
94  int fillColumnNames ( std::vector < std::string > & labels );
95 
113  int fillDoubleVectorFromColumn ( std::vector < double > &vec,
114  int column );
115 
120  int fillAxisSizes ( std::vector < long > & vec ) const;
121 
127  void fillShape ( std::vector < intptr_t > & shape, int column );
128 
132  void fillImageDeltas ( std::vector < double > & deltas ) const;
133 
137  void fillRefPixelIndices ( std::vector < int > & indices ) const;
138 
142  void fillRefPixelValues ( std::vector < double > & values ) const;
143 
147  bool isHammerAitoff () const;
148 
149  void writeHDU ( long rows, int columns,
150  const std::vector < std::string > & names,
151  const std::vector < std::vector < int > > & shapes,
152  const std::string & extname );
153 
154  void writeImageHDU ( long x, long y );
155 
158  void writeColumn ( int c, const std::vector < double > & data );
159 
160  void writePix ( long x, long y,
161  const std::vector <double > & data );
162 
163  void writeCloseFile ();
164 
165  bool pixCenter () const;
166 
167  void writeRefPixelValues ( double value1, double value2 );
168 
169 };
170 
171 } // namespace hippodraw
172 
173 #endif // _FitsFile_h

Generated for HippoDraw Class Library by doxygen