Changeset 1810 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Dec 4, 2001, 6:22:32 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe/TestPipes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/TestPipes/tstmap2toi.cc
r1809 r1810 36 36 <<" -m cmap : idem -i for Sphere (def=\"g\")"<<endl 37 37 <<" -e equi : equinoxe en annee (def=2000.)"<<endl 38 <<" -I : sampleNum are implicit in fits files (def=no)"<<endl 38 39 <<" fitsin_point : fits file for pointing"<<endl 39 40 <<" fitsphere : fits file for input Healpix sphere"<<endl … … 53 54 double equi=2000.; 54 55 long sdeb,sfin; 56 bool snimplicit = false; 55 57 int c; 56 while((c = getopt(narg,arg,"h p:s:w:a:d:b:i:m:e:")) != -1) {58 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:i:m:e:")) != -1) { 57 59 switch (c) { 58 60 case 's' : … … 88 90 case 'e' : 89 91 sscanf(optarg,"%lf",&equi); 92 break; 93 case 'I' : 94 snimplicit = true; 90 95 break; 91 96 case 'h' : … … 120 125 // FITS reader et writer 121 126 FITSTOIReader rfits(fitsin_point); 127 if(snimplicit) rfits.setImplicitSN(); 122 128 int ncol = rfits.getNOut(); 123 129 cout<<"Number of columns in fits Infile Pointing : "<<ncol<<endl; … … 125 131 126 132 FITSTOIWriter wfits(fitsout); 133 if(snimplicit) wfits.setImplicitSN(); 127 134 //wfits.setOutFlags(true); 128 135 cout << "fits reader and writer created"<<endl; -
trunk/ArchTOIPipe/TestPipes/tsttoi2map.cc
r1809 r1810 43 43 <<" -M vmax : samples are good if sample value <= vmax"<<endl 44 44 <<" -f flag : samples are bad if match flag"<<endl 45 <<" -I : sampleNum are implicit in fits files (def=no)"<<endl 45 46 <<" fitsin_point : fits file for pointing"<<endl 46 47 <<" fitsin_bolo : fits file for bolo values"<<endl … … 65 66 string fitsphwout = ""; 66 67 long sdeb,sfin; 68 bool snimplicit = false; 67 69 int c; 68 while((c = getopt(narg,arg,"h p:s:w:a:d:b:n:i:o:m:M:f:e:")) != -1) {70 while((c = getopt(narg,arg,"hIp:s:w:a:d:b:n:i:o:m:M:f:e:")) != -1) { 69 71 switch (c) { 70 72 case 's' : … … 116 118 sscanf(optarg,"%ul",&badflg); 117 119 tflg = true; 120 break; 121 case 'I' : 122 snimplicit = true; 118 123 break; 119 124 case 'h' : … … 154 159 // FITS reader 155 160 FITSTOIReader rfitsb(fitsin_bolo); 161 if(snimplicit) rfitsb.setImplicitSN(); 156 162 int ncolb = rfitsb.getNOut(); 157 163 cout<<"Number of columns in fits Infile_bolo : "<<ncolb<<endl; … … 159 165 160 166 FITSTOIReader rfitsp(fitsin_point); 167 if(snimplicit) rfitsp.setImplicitSN(); 161 168 int ncolp = rfitsp.getNOut(); 162 169 cout<<"Number of columns in fits Infile_point : "<<ncolp<<endl;
Note:
See TracChangeset
for help on using the changeset viewer.