Changeset 3796 in Sophya for trunk/Cosmo/RadioBeam/repicon.cc
- Timestamp:
- Jun 29, 2010, 7:26:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/repicon.cc
r3792 r3796 36 36 { 37 37 if (((narg>1)&&(strcmp(arg[1],"-h")==0))||(narg<3)) { 38 cout << " Usage: repicon configId OutPPFName [Lambda ]"38 cout << " Usage: repicon configId OutPPFName [Lambda=0.357] [RenormalizeMax]" 39 39 << " configs: f4x4 , f8x8 , f20x20 Filled array of nxn dishes \n" 40 40 << " confA , confB, confC : semi-filled array of dishes \n" … … 54 54 if (outfile==".") outfile = "repicon.ppf"; 55 55 double LAMBDA=0.357 ; // 21 cm at z=0.7 56 if (narg>3) LAMBDA = atof(arg[2]); 57 56 if (narg>3) LAMBDA = atof(arg[3]); 57 bool fgrenorm=false; 58 double rmax=1.; 59 if (narg>4) { 60 rmax=atof(arg[4]); 61 fgrenorm=true; 62 } 58 63 //-- end command line arguments 59 64 … … 61 66 try { // exception handling try bloc at top level 62 67 63 cout << " 2.c/ Creating MultiDish Filled Array " << endl;64 68 double Ddish = 5.; 65 69 double Ddish2 = 7.5; … … 122 126 double LMAX = D; 123 127 bool fgnoauto = true; 124 int NRX= 100;125 int NRY= 100;128 int NRX=200; 129 int NRY=200; 126 130 127 131 MultiDish mdish(LAMBDA, LMAX, vdishes, fgnoauto); … … 134 138 PrtTim("Apres mdish.GetResponse()"); 135 139 140 Four2DRespTable mdresp(hrep, Dol, LAMBDA); 141 if (fgrenorm) { 142 cout << " repicon[2.b] call to mdresp.renormalize(" << rmax << ")"; 143 double omax=mdresp.renormalize(rmax); 144 cout << " Old Max=" << omax << endl; 145 } 136 146 cout << " repicon[3] : saving Four2DRespTable for config " << config << " to PPF file " << outfile << endl; 137 Four2DRespTable mdresp(hrep, Dol, LAMBDA);138 147 mdresp.writeToPPF(outfile); 139 148
Note:
See TracChangeset
for help on using the changeset viewer.