Luiza  v03-01
FitsImageWriter.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef FitsImageWriter_h
4 #define FitsImageWriter_h 1
5 
6 // #include "DataSourceProcessor.h"
7 #include "Processor.h"
8 // #include "data/GloriaDataContainer.h"
9 
10 using namespace gloria;
11 
12 namespace luiza {
13 
14 
16 
64  class FitsImageWriter : public Processor {
65 
66  public:
67 
68  virtual FitsImageWriter* newProcessor();
69 
70 
72 
74 
76  virtual void init() ;
77 
79 
84  virtual void startAnalysis( GloriaDataContainer* ) ;
85 
87 
90  virtual void processData( GloriaDataContainer* data ) ;
91 
92 
94 
97  virtual void check( GloriaDataContainer* data ) ;
98 
99 
101 
106  virtual void concludeAnalysis( GloriaDataContainer* ) ;
107 
109 
114  virtual void end() ;
115 
117 
122  void processImages( GloriaDataContainer* data ) ;
123 
124  protected:
125 
128 
131 
133  int _bitPix;
134 
136  double _bScale;
137 
139  int _bZero;
140 
142  int _nLoops ;
143 
145  int _nImages ;
146 
148  int _nWritten ;
149 
150 
151  void printEndMessage() const ;
152  } ;
153 
154  } // end namespace luiza
155 #endif
string _imageCollectionName
Name of the image collection to which images from file should be stored.
Definition: FitsImageWriter.h:127
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
int _bitPix
Output file pixel format.
Definition: FitsImageWriter.h:133
Base class for Luiza processors.
Definition: Processor.h:55
Processor for writing FITS images to output files.
Definition: FitsImageWriter.h:64
int _bZero
Output file pixel offset (BZERO)
Definition: FitsImageWriter.h:139
string _fitsFileNameRoot
Output file name root.
Definition: FitsImageWriter.h:130
double _bScale
Output file pixel scale (BSCALE)
Definition: FitsImageWriter.h:136
int _nLoops
Loop counter.
Definition: FitsImageWriter.h:142
int _nImages
Image counter, used to number file name.
Definition: FitsImageWriter.h:145
Namespace for Luiza framework.
Definition: CCCollection.h:6
int _nWritten
Counter for images successfully written to file.
Definition: FitsImageWriter.h:148