source: Sophya/trunk/ArchTOIPipe/TestPipes/fits2asc.cc@ 1463

Last change on this file since 1463 was 1462, checked in by cmv, 24 years ago

changement getData... intermediaire NE COMPILE PAS cmv+rz 10/4/2001

File size: 659 bytes
Line 
1#include "machdefs.h"
2#include "toi.h"
3#include "toiprocessor.h"
4#include "toimanager.h"
5#include "fitstoirdr.h"
6#include "asciitoiwtr.h"
7
8int main(int argc, char** argv) {
9 TOIManager* mgr = TOIManager::getManager();
10 // mgr->setRequestedSample(11680920,11710584);
11 mgr->setRequestedSample(11680920,11690000);
12 FITSTOIReader r(argv[1]);
13 ASCIITOIWriter w(argv[2]);
14
15
16 int ncol = r.getNOut();
17 for (int i=0; i<ncol; i++) {
18 TOI* toi = new TOIRegularWindow("t1");
19 string n = r.getOutName(i);
20 cout << "got TOI " << n << endl;
21 r.addOutput(n, toi);
22 w.addInput(n, toi);
23 }
24
25 r.start();
26 w.start();
27
28 mgr->joinAll();
29
30 return(0);
31}
Note: See TracBrowser for help on using the repository browser.