Last change
on this file since 1532 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
|
Rev | Line | |
---|
[1462] | 1 | #include "machdefs.h"
|
---|
[1368] | 2 | #include "toi.h"
|
---|
[1464] | 3 | #include "toiregwindow.h"
|
---|
[1368] | 4 | #include "toiprocessor.h"
|
---|
| 5 | #include "toimanager.h"
|
---|
| 6 | #include "fitstoirdr.h"
|
---|
| 7 | #include "asciitoiwtr.h"
|
---|
| 8 |
|
---|
[1437] | 9 | int main(int argc, char** argv) {
|
---|
[1368] | 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 |
|
---|
[1462] | 17 | int ncol = r.getNOut();
|
---|
| 18 | for (int i=0; i<ncol; i++) {
|
---|
[1368] | 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();
|
---|
[1437] | 30 |
|
---|
| 31 | return(0);
|
---|
[1368] | 32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.