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

Last change on this file since 2064 was 1738, checked in by aubourg, 24 years ago

copyright

File size: 950 bytes
RevLine 
[1738]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
[1462]7#include "machdefs.h"
[1368]8#include "toi.h"
[1464]9#include "toiregwindow.h"
[1368]10#include "toiprocessor.h"
11#include "toimanager.h"
12#include "fitstoirdr.h"
13#include "asciitoiwtr.h"
14
[1437]15int main(int argc, char** argv) {
[1368]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
[1462]23 int ncol = r.getNOut();
24 for (int i=0; i<ncol; i++) {
[1368]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();
[1437]36
37 return(0);
[1368]38}
Note: See TracBrowser for help on using the repository browser.