Changeset 3640 in Sophya for trunk/AddOn/TAcq/mcrd.cc
- Timestamp:
- May 27, 2009, 5:15:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/mcrd.cc
r3639 r3640 59 59 if (narg < 4) { 60 60 cout << " --- Reading/Processing BAORadio FITS files" << endl; 61 cout << " Usage: mcrd ACT OutPPF -infits DirName Imin Imax " << endl;61 cout << " Usage: mcrd ACT OutPPF -infits DirName Imin Imax [NZones,NbPaqinZone] " << endl; 62 62 cout << " ACT= notrl FITS files without frame trailer \n" 63 63 << " OutPPF : Output PPF file name (without .ppf)" << endl; 64 64 cout << " -infiles DirName Imin Imax : Input fits directory and sequence numbers \n" 65 << " FileNames=DirName/signalII.fits Imin<=II<=Imax " << endl; 65 << " FileNames=DirName/signalII.fits Imin<=II<=Imax \n" 66 << " - NZones,NbPaqinZone : Number of Zones and number of paquets in one zone\n" 67 << " of the RAcqMemZoneMgr memory manager (default = 4,128) " << endl; 66 68 return 1; 67 69 } … … 86 88 infiles.push_back(nbuff); 87 89 } 90 int nzones = 4; 91 int npaqz = 128; 92 if (narg>7) sscanf(arg[7],"%d,%d",&nzones,&npaqz); 88 93 89 94 cout << " ---------- mcrd.cc Start - ACT= " << act << " ------------- " << endl; … … 92 97 if (act=="notrl") fgnotrl=true; // fichier fits SANS trailer 93 98 94 uint_4 paqsz, npaq ;95 DecodeMiniFitsHeader(infiles[0],paqsz, npaq , fgnotrl);99 uint_4 paqsz, npaqf; 100 DecodeMiniFitsHeader(infiles[0],paqsz, npaqf, fgnotrl); 96 101 97 int nzones = 3; 98 RAcqMemZoneMgr mmgr(nzones, npaq, paqsz, sizeof(complex<r_4>)*paqsz); 102 cout << " mcrd: NZones=" << nzones << " NbPaq=" << npaqz << "(in file=" << npaqf 103 << " ) PaqSz=" << paqsz << endl; 104 105 RAcqMemZoneMgr mmgr(nzones, npaqz, paqsz, sizeof(complex<r_4>)*paqsz); 99 106 mmgr.SetFinalizedMask((uint_4)MemZS_ProcA); 100 107 101 108 BRFitsReader reader(mmgr, infiles, fgnotrl); 102 BRProcARaw2C proc(mmgr, outname, npaq , 1, npaq*infiles.size());109 BRProcARaw2C proc(mmgr, outname, npaqf, 1, npaqf*infiles.size()/npaqz); 103 110 104 111 cout << " mcrd.cc : Starting threads (reader, proc) ... " << endl;
Note:
See TracChangeset
for help on using the changeset viewer.