Last change
on this file since 1464 was 1464, checked in by ansari, 24 years ago |
1) Fin de passage des flags en int_8
2) TOIRegularWindow mis ds un fichier spare , Reza 11/4/2001
|
File size:
685 bytes
|
Line | |
---|
1 | #include "machdefs.h"
|
---|
2 | #include "toi.h"
|
---|
3 | #include "toiregwindow.h"
|
---|
4 | #include "toiprocessor.h"
|
---|
5 | #include "toimanager.h"
|
---|
6 | #include "fitstoirdr.h"
|
---|
7 | #include "asciitoiwtr.h"
|
---|
8 |
|
---|
9 | int main(int argc, char** argv) {
|
---|
10 | TOIManager* mgr = TOIManager::getManager();
|
---|
11 | // mgr->setRequestedSample(11680920,11710584);
|
---|
12 | mgr->setRequestedSample(11680920,11690000);
|
---|
13 | FITSTOIReader r(argv[1]);
|
---|
14 | ASCIITOIWriter w(argv[2]);
|
---|
15 |
|
---|
16 |
|
---|
17 | int ncol = r.getNOut();
|
---|
18 | for (int i=0; i<ncol; i++) {
|
---|
19 | TOI* toi = new TOIRegularWindow("t1");
|
---|
20 | string n = r.getOutName(i);
|
---|
21 | cout << "got TOI " << n << endl;
|
---|
22 | r.addOutput(n, toi);
|
---|
23 | w.addInput(n, toi);
|
---|
24 | }
|
---|
25 |
|
---|
26 | r.start();
|
---|
27 | w.start();
|
---|
28 |
|
---|
29 | mgr->joinAll();
|
---|
30 |
|
---|
31 | return(0);
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.