Changeset 3656 in Sophya for trunk/AddOn/TAcq/mcrd.cc


Ignore:
Timestamp:
Sep 9, 2009, 1:56:34 PM (16 years ago)
Author:
ansari
Message:

Ajout possibilite sauvegarde des cartes 2D temps frequence ds BRProcARaw2C , mcrd.cc - Reza 9/9/2009

File:
1 edited

Legend:

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

    r3652 r3656  
    5858static int NPaqinZone=128;
    5959static int NMean=1024;
     60static int NFreqSMap=0;  // binning en frequences cartes 2D temps-freq, 0-> NoMap 2D spectres   
    6061static int NGenZ=100;
    6162static int GPaqSz=16424;
     
    112113    if (narg>offa+1) sscanf(arg[offa+1],"%d,%d",&NZones,&NPaqinZone);   
    113114    if (narg>offa+2) NMean=atoi(arg[offa+2]);
    114     if (narg>offa+3) sscanf(arg[offa+3],"%d,%d,%lg",&GPaqSz,&NGenZ,&LossRate); 
     115    if (narg>offa+3) NFreqSMap=atoi(arg[offa+3]);
     116    if (narg>offa+4) sscanf(arg[offa+4],"%d,%d,%lg",&GPaqSz,&NGenZ,&LossRate); 
    115117
    116118    cout << " ---------- mcrd.cc Start - ACT= " << act << " ------------- " << endl;
     
    176178
    177179  outname += "/Ch12";
    178   BRProcARaw2C proc(mmgr, outname, NMean, nmaxz, fghist, fgnotrl);
     180  BRProcARaw2C proc(mmgr, outname, NMean, nmaxz, fghist, NFreqSMap, fgnotrl);
    179181
    180182  cout << " mcrd/Proc1FRawA: Starting threads (reader, proc) ... " << endl;
     
    243245  string outname1 = outname;
    244246  outname1 += "/Ch12";
    245   BRProcARaw2C proc1(mmgr1, outname1, NMean, nmaxz, fghist, fgnotrl);
     247  BRProcARaw2C proc1(mmgr1, outname1, NMean, nmaxz, fghist, NFreqSMap, fgnotrl);
    246248  string outname2 = outname;
    247249  outname2 += "/Ch34";
    248   BRProcARaw2C proc2(mmgr2, outname2, NMean, nmaxz, fghist, fgnotrl,2);
     250  BRProcARaw2C proc2(mmgr2, outname2, NMean, nmaxz, fghist, NFreqSMap, fgnotrl,2);
    249251  string outname12 = outname;
    250252  outname12 += "/Ch1234";
     
    294296  cout << " --- mcrd.cc : Reading/Processing BAORadio FITS files" << endl;
    295297  cout << " Usage:  mcrd ACT OutPath InPath [InPath2] Imin,Imax\n"
    296        << "              [NZones,NPaqinZone] [NMean] [GPaqSz,NGenZones,LossRate]" << endl;
     298       << "              [NZones,NPaqinZone] [NMean] [NFreqSMap]\n"
     299       << "              [GPaqSz,NGenZones,LossRate]" << endl;
    297300  if (fgshort) {
    298301    cout << " mcrd -h for detailed instructions" << endl;
     
    312315       << "     of the RAcqMemZoneMgr memory manager (default = 4,128)\n"
    313316       << " NMean: Number of packet used for spectra/visibility computation (def=1024)\n"
     317       << " NFreqSMap: Frequency binning for 2D (time-freq) spectra maps (def=0->No maps)\n"
    314318       << " GPaqSz,NGenZones,LossRate: Paquet Size, Number of memory zones filled and\n"
    315319       << "      loss rate (-2g,-4g) , default=16424,100,0.1" << endl;
Note: See TracChangeset for help on using the changeset viewer.