Last change
on this file since 314 was 310, checked in by ansari, 26 years ago |
Conversion Archeops raw file -> TOI
|
File size:
1.0 KB
|
Line | |
---|
1 |
|
---|
2 | #include <iostream.h>
|
---|
3 | #include <iomanip.h>
|
---|
4 |
|
---|
5 | #include "archeopsfile.h"
|
---|
6 | #include "toisvr.h"
|
---|
7 |
|
---|
8 | using namespace std; //introduces namespace std
|
---|
9 |
|
---|
10 | int main()
|
---|
11 | {
|
---|
12 | TOISvr svr;
|
---|
13 | svr.SetFile("h99_04_29-15h36m22");
|
---|
14 | svr.AddInfo(boloTens,0);
|
---|
15 | svr.AddInfo(boloTens,1);
|
---|
16 | svr.AddInfo(boloTens,2);
|
---|
17 | svr.AddInfo(boloTens,3);
|
---|
18 |
|
---|
19 | TOIIter iter = svr.DoQuery();
|
---|
20 | while (iter.Next()) {
|
---|
21 | cout << setprecision(15) << iter.getTime() << " " <<
|
---|
22 | setprecision(4) << iter.getValue(0) << " " << iter.getValue(1) << " " <<
|
---|
23 | iter.getValue(2) << " " << iter.getValue(3) << "\n";
|
---|
24 | }
|
---|
25 |
|
---|
26 | /*
|
---|
27 | int nblk[20];
|
---|
28 | for (int i=0; i<20; i++) nblk[i] = 0;
|
---|
29 | cout << "opening" << endl;
|
---|
30 | //ArcheopsFile file("Stock:ARCHEOPS:h99_04_29-15h36m22");
|
---|
31 | ArcheopsFile file("h99_04_29-15h36m22");
|
---|
32 | cout << file.getStartMJD() << endl;
|
---|
33 | cout << "reading" << endl;
|
---|
34 | while (file.nextBlock()) {
|
---|
35 | //cout << file.blockKdName() << " " << file.blockNum() << "\n";
|
---|
36 | nblk[file.blockKind()]++;
|
---|
37 | }
|
---|
38 | cout << "done" << endl;
|
---|
39 | for (int i=0; i<20; i++) cout << i <<" " << nblk[i] << endl;
|
---|
40 | */
|
---|
41 | }
|
---|
42 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.