Changeset 2329 in Sophya for trunk/ArchTOIPipe/TestPipes


Ignore:
Timestamp:
Feb 24, 2003, 3:14:51 PM (23 years ago)
Author:
cecile
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/TestPipes/tsttoi2ring.cc

    r2319 r2329  
    2222void usage(void);
    2323void 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;
    2526 return;
    2627}
     
    3839bool snimplicit = false;
    3940
    40 if(narg != 6) {usage(); exit(2);}
     41if(narg != 8) {usage(); exit(2);}
    4142char * fitsin_phase    = arg[1];
    4243char * fitsin_value    = arg[2];
     
    4445char * fitsout_weight  = arg[4];
    4546int    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 
    4651
    4752cout<<">>>> tsttoi2ring:"<<endl
     
    6772 FITSTOIReader rfitsp(fitsin_phase);
    6873 if(snimplicit) rfitsp.setImplicitSN();
     74 if(sfin>=sdeb) rfitsp.setRequestedSample(sdeb,sfin);
     75
    6976 FITSTOIReader rfitsv(fitsin_value);
    7077 if(snimplicit) rfitsv.setImplicitSN();
     
    7986 wfits.setNSamples(Nsamples);
    8087 wwfits.setNSamples(Nsamples);
     88 wfits.setNRings(1);
     89 wwfits.setNRings(1);
     90 
     91
    8192
    8293 cout << "fits writer created"<<endl;
     
    8697 Toi2RING m2ring(Nsamples);
    8798 cout<<"Toi2RING created"<<endl;
     99
     100 if(sfin>=sdeb) m2ring.setRequestedSample(sdeb,sfin);
    88101
    89102 // Definition des tuyaux
Note: See TracChangeset for help on using the changeset viewer.