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

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

fits reader pour fichers sans samplenum, level s planck

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