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

Last change on this file since 1730 was 1725, checked in by aubourg, 24 years ago

fits reader pour fichers sans samplenum, level s planck

File size: 1.2 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 void setImplicitSN(int snStart=0);
19
20 virtual void addFile(string fn);
21
22 virtual void init();
23 virtual void run();
24
25 inline int_8 ProcessedSampleCount() const { return totnscount; }
26
27protected:
28 virtual int calcMinOut();
29 virtual int calcMaxOut();
30
31 virtual void run1();
32 virtual void run2();
33 virtual void openFile(string fn);
34
35private:
36 fitsfile* fptr;
37 int fstatus;
38 string fname; // current file
39 long nrows; // current file
40 int firstSn; // current file
41 int Buff_Sz; // buffer size
42
43 int ncols; // including flags. getNOut() is # of tois.
44 int snBegin; // first file
45 int snEnd; // last file
46
47 bool implicitSN;
48 int implicitSNStart;
49
50 vector<string> allfn;
51 map<int,pair<int, bool> > colsinput; // iTOI -> (colonne, hasflag)
52 // le flag est alors en colonne+1
53
54 int_8 totnscount; // Nombre total d'echantillon processe
55
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.