Changeset 3935 in Sophya
- Timestamp:
- Dec 29, 2010, 11:17:52 AM (15 years ago)
- Location:
- trunk/AddOn/TAcq
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/chanum_1210.cc
r3928 r3935 18 18 #include "nbtrixx.h" 19 19 20 // > chanum_1210 -f 1375.0610351 - o CasA02Dec.csh ../../crt*/PittsDec10/CasA02Dec/chanum_*.ppf21 // > chanum_1210 -f 1375.0610351 - o Crab03Dec.csh ../../crt*/PittsDec10/Crab03Dec/chanum_*.ppf22 // > chanum_1210 -f 1382.5378418 - o Sun03Dec.csh ../../crt*/PittsDec10/Sun03Dec/chanum_*.ppf23 // > chanum_1210 -f 1390.0146484 - o CasA03Dec.csh ../../crt*/PittsDec10/CasA03Dec/chanum_*.ppf20 // > chanum_1210 -f 1375.0610351 -F 0,8888,5 -o CasA02Dec.csh ../../crt*/PittsDec10/CasA02Dec/chanum_*.ppf 21 // > chanum_1210 -f 1375.0610351 -F 0,8888,5 -o Crab03Dec.csh ../../crt*/PittsDec10/Crab03Dec/chanum_*.ppf 22 // > chanum_1210 -f 1382.5378418 -F 0,8888,5 -o Sun03Dec.csh ../../crt*/PittsDec10/Sun03Dec/chanum_*.ppf 23 // > chanum_1210 -f 1390.0146484 -F 0,8888,5 -o CasA03Dec.csh ../../crt*/PittsDec10/CasA03Dec/chanum_*.ppf 24 24 25 25 int decode_numthread(string filein,string& dir); … … 30 30 { 31 31 cout<<"Usage: chanum_1210 [options] chanum_?.ppf ..."<<endl 32 <<" -f F0MHz : 1ere frequence pour cette acquisition"<<endl 32 <<" -f F0MHz : 1ere frequence pour cette acquisition (def=0.)"<<endl 33 <<" -F if0,if1,idf : selection freq de if0 a if1 moyenne par idf (def=\"0,8888,1\")"<<endl 34 <<" -T it0,it1 : selection fichier temps de it0 a it1 (def=\"0,999999\")"<<endl 33 35 <<" -o fichier.csh : nom du fichier de sortie pour les commandes a lancer"<<endl; 34 36 } … … 38 40 { 39 41 string outname = "chanum_1210.csh"; 42 string selfreq = "0,8888,1", seltime = "0,999999"; 40 43 double freq0 = 0.; 41 44 42 45 char c; 43 while((c = getopt(narg,arg,"hO:o:f: ")) != -1) {46 while((c = getopt(narg,arg,"hO:o:f:F:T:")) != -1) { 44 47 switch (c) { 45 48 case 'f' : … … 48 51 case 'o' : 49 52 outname = optarg; 53 break; 54 case 'F' : 55 selfreq = optarg; 56 break; 57 case 'T' : 58 seltime = optarg; 50 59 break; 51 60 case 'h' : … … 90 99 91 100 // ecriture 101 { 92 102 ofstream ftxt(outname.c_str(), ofstream::out); 93 103 cout<<"writing in "<<outname<<" (is_open="<<ftxt.is_open()<<")"<<endl; … … 97 107 nvisi = 0; 98 108 for(uint_4 i=0;i<vcode.size();i++) { 99 char str[256]; 100 sprintf(str,"${TACQEXE}/svv2mtx2_1210 -T 0,99999 -F 0,8888,1 -f %.7f",freq0); 109 char str[512]; 110 sprintf(str,"${TACQEXE}/svv2mtx2_1210 -f %.7f -T %s -F %s" 111 ,freq0,seltime.c_str(),selfreq.c_str()); 101 112 string argu = str; 102 113 uint_4 ip = IVcode(i); … … 129 140 cout<<"nvisi tot="<<nvisi<<", number of duplicate="<<ndupli<<", nvisi="<<nvisi-ndupli<<" / 528"<<endl; 130 141 ftxt << "exit 0" <<endl; 142 } 143 144 // script should be executable 145 string chmod = "chmod a+x "; chmod += outname; 146 system(chmod.c_str()); 131 147 132 148 return 0; -
trunk/AddOn/TAcq/svv2mtx2_1210.cc
r3928 r3935 229 229 MVisi.Info()["dir"] = indir; 230 230 MVisi.Info()["dupli"] = (dupli) ? 1: 0; 231 MVisi.Info()[" doconj"] = (doconj) ? 1: 0;231 MVisi.Info()["isconj"] = (doconj) ? 1: 0; 232 232 MVisi.Info()["TUobs_0"] = tudeb; 233 233 MVisi.Info()["TUobs_N"] = tufin;
Note:
See TracChangeset
for help on using the changeset viewer.