Changeset 1810 in Sophya for trunk/ArchTOIPipe


Ignore:
Timestamp:
Dec 4, 2001, 6:22:32 PM (24 years ago)
Author:
cmv
Message:

fits reader/writer possibilite de setImplicit cmv 4/12/01

Location:
trunk/ArchTOIPipe/TestPipes
Files:
2 edited

Legend:

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

    r1809 r1810  
    3636     <<" -m cmap : idem -i for Sphere (def=\"g\")"<<endl
    3737     <<" -e equi : equinoxe en annee (def=2000.)"<<endl
     38     <<" -I : sampleNum are implicit in fits files (def=no)"<<endl
    3839     <<" fitsin_point : fits file for pointing"<<endl
    3940     <<" fitsphere : fits file for input Healpix sphere"<<endl
     
    5354double equi=2000.;
    5455long sdeb,sfin;
     56bool snimplicit = false;
    5557int c;
    56 while((c = getopt(narg,arg,"hp:s:w:a:d:b:i:m:e:")) != -1) {
     58while((c = getopt(narg,arg,"hIp:s:w:a:d:b:i:m:e:")) != -1) {
    5759  switch (c) {
    5860  case 's' :
     
    8890  case 'e' :
    8991    sscanf(optarg,"%lf",&equi);
     92    break;
     93  case 'I' :
     94    snimplicit = true;
    9095    break;
    9196  case 'h' :
     
    120125 // FITS reader et writer
    121126 FITSTOIReader rfits(fitsin_point);
     127 if(snimplicit) rfits.setImplicitSN();
    122128 int ncol = rfits.getNOut();
    123129 cout<<"Number of columns in fits Infile Pointing : "<<ncol<<endl;
     
    125131
    126132 FITSTOIWriter wfits(fitsout);
     133 if(snimplicit) wfits.setImplicitSN();
    127134 //wfits.setOutFlags(true);
    128135 cout << "fits reader and writer created"<<endl;
  • trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc

    r1809 r1810  
    4343     <<" -M vmax : samples are good if sample value <= vmax"<<endl
    4444     <<" -f flag : samples are bad if match flag"<<endl
     45     <<" -I : sampleNum are implicit in fits files (def=no)"<<endl
    4546     <<" fitsin_point : fits file for pointing"<<endl
    4647     <<" fitsin_bolo : fits file for bolo values"<<endl
     
    6566string fitsphwout = "";
    6667long sdeb,sfin;
     68bool snimplicit = false;
    6769int c;
    68 while((c = getopt(narg,arg,"hp:s:w:a:d:b:n:i:o:m:M:f:e:")) != -1) {
     70while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:")) != -1) {
    6971  switch (c) {
    7072  case 's' :
     
    116118    sscanf(optarg,"%ul",&badflg);
    117119    tflg = true;
     120    break;
     121  case 'I' :
     122    snimplicit = true;
    118123    break;
    119124  case 'h' :
     
    154159 // FITS reader
    155160 FITSTOIReader rfitsb(fitsin_bolo);
     161 if(snimplicit) rfitsb.setImplicitSN();
    156162 int ncolb = rfitsb.getNOut();
    157163 cout<<"Number of columns in fits Infile_bolo : "<<ncolb<<endl;
     
    159165
    160166 FITSTOIReader rfitsp(fitsin_point);
     167 if(snimplicit) rfitsp.setImplicitSN();
    161168 int ncolp = rfitsp.getNOut();
    162169 cout<<"Number of columns in fits Infile_point : "<<ncolp<<endl;
Note: See TracChangeset for help on using the changeset viewer.