Line | |
---|
1 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
---|
2 | // Eric Aubourg
|
---|
3 | // Christophe Magneville
|
---|
4 | // Reza Ansari
|
---|
5 | // $Id: fits2asc.cc,v 1.5 2001-11-08 15:47:44 aubourg Exp $
|
---|
6 |
|
---|
7 | #include "machdefs.h"
|
---|
8 | #include "toi.h"
|
---|
9 | #include "toiregwindow.h"
|
---|
10 | #include "toiprocessor.h"
|
---|
11 | #include "toimanager.h"
|
---|
12 | #include "fitstoirdr.h"
|
---|
13 | #include "asciitoiwtr.h"
|
---|
14 |
|
---|
15 | int main(int argc, char** argv) {
|
---|
16 | TOIManager* mgr = TOIManager::getManager();
|
---|
17 | // mgr->setRequestedSample(11680920,11710584);
|
---|
18 | mgr->setRequestedSample(11680920,11690000);
|
---|
19 | FITSTOIReader r(argv[1]);
|
---|
20 | ASCIITOIWriter w(argv[2]);
|
---|
21 |
|
---|
22 |
|
---|
23 | int ncol = r.getNOut();
|
---|
24 | for (int i=0; i<ncol; i++) {
|
---|
25 | TOI* toi = new TOIRegularWindow("t1");
|
---|
26 | string n = r.getOutName(i);
|
---|
27 | cout << "got TOI " << n << endl;
|
---|
28 | r.addOutput(n, toi);
|
---|
29 | w.addInput(n, toi);
|
---|
30 | }
|
---|
31 |
|
---|
32 | r.start();
|
---|
33 | w.start();
|
---|
34 |
|
---|
35 | mgr->joinAll();
|
---|
36 |
|
---|
37 | return(0);
|
---|
38 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.