Changeset 3928 in Sophya for trunk/AddOn/TAcq/svv2mtx2_1210.cc
- Timestamp:
- Dec 17, 2010, 4:24:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/svv2mtx2_1210.cc
r3927 r3928 24 24 cout<<"svv2mtx2_1012 [options] dir : lecture des fichiers acq de Pittsburgh Dec 2010"<<endl 25 25 <<" dir : repertoire ou se trouvent les fichiers d'acq"<<endl 26 <<" -C : compute and store the complexe conjugated visi"<<endl 26 27 <<" -D : visi is a duplicated one"<<endl 27 28 <<" -o visi.ppf : nom du ficher ppf pour ecrire la visi temps-frequence"<<endl … … 40 41 string outname = ""; 41 42 int numthread = -1, numrow = -1; 42 bool dupli = false ;43 bool dupli = false, doconj = false; 43 44 double freq0 = 0.; 44 45 int ifilmin=0, ifilmax=99999; … … 47 48 48 49 char c; 49 while((c = getopt(narg,arg,"hD o:t:r:f:T:F:")) != -1) {50 while((c = getopt(narg,arg,"hDCo:t:r:f:T:F:")) != -1) { 50 51 switch (c) { 51 52 case 'D' : 52 53 dupli = true; 53 54 break; 55 case 'C' : 56 doconj = true; 57 break; 54 58 case 'o' : 55 59 outname = optarg; … … 83 87 cout<<"numrow="<<numrow<<endl; if(numrow<0) return -2; 84 88 cout<<"dupli="<<(int)dupli<<endl; 89 cout<<"doconj="<<(int)doconj<<endl; 85 90 cout<<"outname="<<outname<<endl; if(outname.size()<=0) return -2; 86 91 cout<<"indir="<<indir<<endl; … … 204 209 Npaqsum(ntimefill) = nf * npaqsum; 205 210 MVisi(ntimefill,i) /= double(Npaqsum(ntimefill)); 211 if(doconj) MVisi(ntimefill,i) = conj(MVisi(ntimefill,i)); 206 212 } 207 213 ntimefill++; … … 223 229 MVisi.Info()["dir"] = indir; 224 230 MVisi.Info()["dupli"] = (dupli) ? 1: 0; 231 MVisi.Info()["doconj"] = (doconj) ? 1: 0; 225 232 MVisi.Info()["TUobs_0"] = tudeb; 226 233 MVisi.Info()["TUobs_N"] = tufin;
Note:
See TracChangeset
for help on using the changeset viewer.