Changeset 2329 in Sophya for trunk/ArchTOIPipe/TestPipes/tsttoi2ring.cc
- Timestamp:
- Feb 24, 2003, 3:14:51 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tsttoi2ring.cc
r2319 r2329 22 22 void usage(void); 23 23 void usage(void) { 24 cout<<"tsttoi2ring fitsin_phase fitsin_value fitsout_value fitsout_weight Nsamples"<<endl; 24 cout<<"tsttoi2ring fitsin_phase fitsin_value fitsout_value fitsout_weight "; 25 cout<<" Nsamples SN_begin SN_last (all -f SN_last<SN_begin)"<<endl; 25 26 return; 26 27 } … … 38 39 bool snimplicit = false; 39 40 40 if(narg != 6) {usage(); exit(2);}41 if(narg != 8) {usage(); exit(2);} 41 42 char * fitsin_phase = arg[1]; 42 43 char * fitsin_value = arg[2]; … … 44 45 char * fitsout_weight = arg[4]; 45 46 int Nsamples = atoi(arg[5]); 47 int_8 sdeb = atoi(arg[6]); 48 int_8 sfin = atoi(arg[7]); 49 cout<<"Requested Samples from "<<sdeb<<" , "<<sfin<<endl; 50 46 51 47 52 cout<<">>>> tsttoi2ring:"<<endl … … 67 72 FITSTOIReader rfitsp(fitsin_phase); 68 73 if(snimplicit) rfitsp.setImplicitSN(); 74 if(sfin>=sdeb) rfitsp.setRequestedSample(sdeb,sfin); 75 69 76 FITSTOIReader rfitsv(fitsin_value); 70 77 if(snimplicit) rfitsv.setImplicitSN(); … … 79 86 wfits.setNSamples(Nsamples); 80 87 wwfits.setNSamples(Nsamples); 88 wfits.setNRings(1); 89 wwfits.setNRings(1); 90 91 81 92 82 93 cout << "fits writer created"<<endl; … … 86 97 Toi2RING m2ring(Nsamples); 87 98 cout<<"Toi2RING created"<<endl; 99 100 if(sfin>=sdeb) m2ring.setRequestedSample(sdeb,sfin); 88 101 89 102 // Definition des tuyaux
Note:
See TracChangeset
for help on using the changeset viewer.