1 |
|
---|
2 | #include <iostream.h>
|
---|
3 | #include <fstream.h>
|
---|
4 | #include <iomanip.h>
|
---|
5 |
|
---|
6 | #include "archeopsfile.h"
|
---|
7 | #include "toisvr.h"
|
---|
8 |
|
---|
9 | using namespace std; //introduces namespace std
|
---|
10 |
|
---|
11 | int main()
|
---|
12 | {
|
---|
13 | TOISvr svr;
|
---|
14 | //svr.SetFile("h99_04_29-15h36m22");
|
---|
15 | svr.SetFile("/home/manip/mnt/planck/aubourg/h99_06_08-11h49m15");
|
---|
16 | svr.AddInfo(sampleNum);
|
---|
17 | svr.AddInfo(internalTime);
|
---|
18 | svr.AddInfo(utc);
|
---|
19 | //svr.AddInfo(longitude);
|
---|
20 | svr.AddInfo(longitude, true, true);
|
---|
21 | svr.AddInfo(sstSignal,0);
|
---|
22 | svr.AddInfo(sstSignal,10);
|
---|
23 | svr.AddInfo(boloTens,1);
|
---|
24 | svr.AddInfo(boloTens,2);
|
---|
25 |
|
---|
26 | TOIIter iter = svr.DoQuery();
|
---|
27 | ofstream of ("test.out");
|
---|
28 | while (iter.Next()) {
|
---|
29 | //if (iter.getValue(4) != 0 || iter.getValue(5) !=0 )
|
---|
30 | /* cout << iter.getValue(0) << " " << iter.getValue(1) << " " <<
|
---|
31 | setprecision(12) << iter.getValue(2) << " " <<
|
---|
32 | setprecision(7) << iter.getValue(3) << " " <<
|
---|
33 | setprecision(4) << iter.getValue(4) << " " <<
|
---|
34 | iter.getValue(5) << " " << iter.getValue(6) << "\n";*/
|
---|
35 | cout << iter.getTOI(sampleNum) << " " << iter.getTOI(internalTime) << " " <<
|
---|
36 | setprecision(12) << iter.getTOI(utc) << " " <<
|
---|
37 | setprecision(7) << iter.getTOI(longitude) << " " <<
|
---|
38 | setprecision(4) << iter.getTOI(sstSignal) << " " <<
|
---|
39 | iter.getTOI(sstSignal,10) << " " << iter.getTOI(boloTens,1) << "\n";
|
---|
40 | of << iter.getValue(0) << " " << iter.getValue(1) << " " <<
|
---|
41 | setprecision(12) << iter.getValue(2) << " " <<
|
---|
42 | setprecision(7) << iter.getValue(3) << " " <<
|
---|
43 | setprecision(4) << iter.getValue(4) << " " <<
|
---|
44 | iter.getValue(5) << " " << iter.getValue(6) << "\n";
|
---|
45 | }
|
---|
46 |
|
---|
47 | /*
|
---|
48 | int nblk[20];
|
---|
49 | for (int i=0; i<20; i++) nblk[i] = 0;
|
---|
50 | cout << "opening" << endl;
|
---|
51 | //ArcheopsFile file("Stock:ARCHEOPS:h99_04_29-15h36m22");
|
---|
52 | ArcheopsFile file("h99_04_29-15h36m22");
|
---|
53 | cout << file.getStartMJD() << endl;
|
---|
54 | cout << "reading" << endl;
|
---|
55 | while (file.nextBlock()) {
|
---|
56 | //cout << file.blockKdName() << " " << file.blockNum() << "\n";
|
---|
57 | nblk[file.blockKind()]++;
|
---|
58 | }
|
---|
59 | cout << "done" << endl;
|
---|
60 | for (int i=0; i<20; i++) cout << i <<" " << nblk[i] << endl;
|
---|
61 | */
|
---|
62 | }
|
---|
63 |
|
---|