source: Sophya/trunk/ArchTOIPipe/Kernel/fitstoirdr.h@ 1721

Last change on this file since 1721 was 1717, checked in by aubourg, 24 years ago

nouveau fits

File size: 1.1 KB
Line 
1// This may look like C code, but it is really -*- C++ -*-
2
3#ifndef FITSTOIRDR_H
4#define FITSTOIRDR_H
5
6#include "toiprocessor.h"
7#include <string>
8#include <vector>
9#include <map>
10#include "fitsio.h"
11
12
13class FITSTOIReader : public TOIProcessor {
14public:
15 FITSTOIReader(string fn,int buff_sz=1000);
16 ~FITSTOIReader();
17
18 virtual void addFile(string fn);
19
20 virtual void init();
21 virtual void run();
22
23 inline int_8 ProcessedSampleCount() const { return totnscount; }
24
25protected:
26 virtual int calcMinOut();
27 virtual int calcMaxOut();
28
29 virtual void run1();
30 virtual void run2();
31 virtual void openFile(string fn);
32
33private:
34 fitsfile* fptr;
35 int fstatus;
36 string fname; // current file
37 long nrows; // current file
38 int firstSn; // current file
39 int Buff_Sz; // buffer size
40
41 int ncols; // including flags. getNOut() is # of tois.
42 int snBegin; // first file
43 int snEnd; // last file
44
45 vector<string> allfn;
46 map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
47 // le flag est alors en colonne+1
48
49 int_8 totnscount; // Nombre total d'echantillon processe
50
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.