Changeset 3928 in Sophya for trunk/AddOn/TAcq/svv2mtx2_1210.cc


Ignore:
Timestamp:
Dec 17, 2010, 4:24:06 PM (15 years ago)
Author:
cmv
Message:

gestion de la conjugaison complexe pour visi # de <E.conj(W)>, cmv 17/12/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/svv2mtx2_1210.cc

    r3927 r3928  
    2424cout<<"svv2mtx2_1012 [options] dir : lecture des fichiers acq de Pittsburgh Dec 2010"<<endl
    2525    <<" dir : repertoire ou se trouvent les fichiers d'acq"<<endl
     26    <<" -C : compute and store the complexe conjugated visi"<<endl
    2627    <<" -D : visi is a duplicated one"<<endl
    2728    <<" -o visi.ppf : nom du ficher ppf pour ecrire la visi temps-frequence"<<endl
     
    4041  string outname = "";
    4142  int numthread = -1, numrow = -1;
    42   bool dupli = false;
     43  bool dupli = false, doconj = false;
    4344  double freq0 = 0.;
    4445  int ifilmin=0, ifilmax=99999;
     
    4748
    4849  char c;
    49   while((c = getopt(narg,arg,"hDo:t:r:f:T:F:")) != -1) {
     50  while((c = getopt(narg,arg,"hDCo:t:r:f:T:F:")) != -1) {
    5051    switch (c) {
    5152    case 'D' :
    5253      dupli = true;
    5354      break;
     55    case 'C' :
     56      doconj = true;
     57      break;
    5458    case 'o' :
    5559      outname = optarg;
     
    8387  cout<<"numrow="<<numrow<<endl;  if(numrow<0) return -2;
    8488  cout<<"dupli="<<(int)dupli<<endl;
     89  cout<<"doconj="<<(int)doconj<<endl;
    8590  cout<<"outname="<<outname<<endl; if(outname.size()<=0) return -2;
    8691  cout<<"indir="<<indir<<endl;
     
    204209      Npaqsum(ntimefill) = nf * npaqsum;
    205210      MVisi(ntimefill,i) /= double(Npaqsum(ntimefill));
     211      if(doconj) MVisi(ntimefill,i) = conj(MVisi(ntimefill,i));
    206212    }
    207213    ntimefill++;
     
    223229  MVisi.Info()["dir"] = indir;
    224230  MVisi.Info()["dupli"] = (dupli) ? 1: 0;
     231  MVisi.Info()["doconj"] = (doconj) ? 1: 0;
    225232  MVisi.Info()["TUobs_0"] = tudeb;
    226233  MVisi.Info()["TUobs_N"] = tufin;
Note: See TracChangeset for help on using the changeset viewer.