Luiza  v03-01
PiFitcImageReader.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef PiFitcImageReader_h
4 #define PiFitcImageReader_h 1
5 
6 #include "luiza/DataSourceProcessor.h"
7 
8 using namespace gloria;
9 
10 namespace luiza {
11 
12 
14 
56 
57  public:
58 
59  virtual PiFitcImageReader* newProcessor();
60 
61 
63 
67  virtual void init() ;
68 
71  virtual void processData( GloriaDataContainer* data ) ;
72 
73 
74  virtual void check( GloriaDataContainer* data ) ;
75 
76 
79  virtual void end() ;
80 
81 
82  protected:
83 
85  int pi_fits_rdecomp (unsigned char *c, int clen, unsigned int *array,
86  int nx, int nblock);
87 
89  std::vector< std::string > _fitsFileList ;
90 
92  std::vector< std::string > _listFileList ;
93 
95  std::string _imageCollectionName ;
96 
99 
101  bool _rml1024;
102 
105 
107  int _nLoops ;
108 
110  int _nImages ;
111 
113  int _nFiles ;
114 
116  void printEndMessage() const ;
117  } ;
118 
119  } // end namespace luiza
120 #endif
bool _rml1024
Flag for removing line 1024.
Definition: PiFitcImageReader.h:101
bool _permanentCollection
Flag for collections, which should not be deleted after loop is finished.
Definition: PiFitcImageReader.h:98
std::vector< std::string > _listFileList
Names of files containing FITS file lists (one per line) - alternative method.
Definition: PiFitcImageReader.h:92
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
Processor for reading compressed Pi of the Sky images (.fitc)
Definition: PiFitcImageReader.h:55
int _nImages
Image counter.
Definition: PiFitcImageReader.h:110
std::string _imageCollectionName
Name of the image collection to which images from file should be stored.
Definition: PiFitcImageReader.h:95
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
int _nFiles
File counter.
Definition: PiFitcImageReader.h:113
int _imagesPerLoop
Number of images to be read per processing loop (0 for all)
Definition: PiFitcImageReader.h:104
Base class for processors accessing input data.
Definition: DataSourceProcessor.h:19
int _nLoops
Loop counter.
Definition: PiFitcImageReader.h:107
std::vector< std::string > _fitsFileList
List of FITS files to be read.
Definition: PiFitcImageReader.h:89
Namespace for Luiza framework.
Definition: CCCollection.h:6