Changeset 3948 in Sophya for trunk/Cosmo/RadioBeam
- Timestamp:
- Feb 16, 2011, 3:20:54 PM (15 years ago)
- Location:
- trunk/Cosmo/RadioBeam
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/pknoise.cc
r3947 r3948 43 43 << " -noise NoiseLevel (default=1.) \n" 44 44 << " -renmax MaxValue (default : Do NOT renormalize 2D response value \n" 45 << " -scut SCutValue (default=100.) \n"46 45 << " -ngen NGen (default=0) number of noise fourier amp generations \n" 47 46 << " NGen=0 -> Call ComputeNoisePk(), else generate Fourier Amplitudes (random) \n" 48 47 << " -z redshift (default=0.7) \n" 48 << " -scut SCutValue (default= -100.) \n" 49 << " if SCutValue<0. ==> SCut=MinNoisePower*(-SCutValue) \n" 49 50 << " -prt PrtLev,PrtModulo (default=0,10) " << endl; 50 51 return; … … 76 77 double rmax=1.; 77 78 int NMAX = 0; 78 double SCut=0.; 79 double SCut=-100.; 80 bool fgautoscut=true; 81 double FacSCut=-SCut; 79 82 double z_Redshift=0.7 ; // 21 cm at z=0.7 -> 0.357 m 80 83 int prtlev=0; … … 92 95 else if (strcmp(arg[ka],"-scut")==0) { 93 96 SCut=atof(arg[ka+1]); ka+=2; 97 if (SCut<0.) { FacSCut=-SCut; fgautoscut=true; } 94 98 } 95 99 else if (strcmp(arg[ka],"-ngen")==0) { … … 154 158 else cout << " pknoise[1]: Four2DResponse ( Diameter=" << DIAMETRE << " Lambda= " << lambda 155 159 << " DoL=" << DIAMETRE/lambda << " ) " << endl; 156 160 Histo2D h2drep = arep_p->GetResponse(); 161 double repmax= h2drep.VMax(); 162 if (fgautoscut) { 163 SCut = FacSCut/repmax; 164 cout << " pknoise[1.b]: Four2DResponse.RepMax=" << repmax << " --> SCut=" << FacSCut << "/repmax=" 165 << SCut << endl; 166 } 167 else cout << " pknoise[1.b]: Four2DResponse.RepMax=" << repmax << " , SCut=" << SCut << endl; 157 168 158 169 cout << " pknoise[2]: Instanciating object type Four3DPk " << endl; … … 167 178 pkn.SetPrtLevel(prtlev,prtmod); 168 179 HProf hpn = pkn.Compute(); 180 cout << " pknoise[3.b]: writing hpn noise profile to " << outfile << endl; 169 181 po << hpn; 170 182 } … … 173 185 DataTable dtnoise; 174 186 HProf hpn = m3d.ComputeNoisePk(*(arep_p),fracmodok,dtnoise,SCut); 175 po << hpn;176 string outfile2 = "x"+outfile;177 POutPersist po2(outfile2);178 187 HProf h1dnoise=arep_p->GetProjNoiseLevel(); 179 188 HProf h1drep=arep_p->GetProjResponse(); 180 po2 << PPFNameTag("dtnoise") << dtnoise; 181 po2 << PPFNameTag("hpnoise") << hpn; 182 po2 << PPFNameTag("fracmodok") << fracmodok; 183 po2 << PPFNameTag("h1dnoise") << h1dnoise; 184 po2 << PPFNameTag("h1drep") << h1drep; 189 cout << " pknoise[3.b]: writing dtnoise,hpn,h2rep... with tags to " << outfile << endl; 190 po << PPFNameTag("dtnoise") << dtnoise; 191 po << PPFNameTag("hpnoise") << hpn; 192 po << PPFNameTag("fracmodok") << fracmodok; 193 po << PPFNameTag("h1dnoise") << h1dnoise; 194 po << PPFNameTag("h1drep") << h1drep; 195 po << PPFNameTag("h2drep") << h2drep; 185 196 } 186 197 rc = 0; -
trunk/Cosmo/RadioBeam/repicon.cc
r3947 r3948 43 43 cout << " Usage: repicon [-parname Value] configId OutPPFName \n" 44 44 << " configIds: f4x4,f8x8,f11x11,f20x20, confA,confB,confC,confD, hex12,cross11, \n" 45 << " f 3cyl,f8cyl,f3cylp,f8cylp, nan12,nan24,nan36,nan40,nan128 \n"45 << " f4cyl,f8cyl,f4cylp,f4cylp, nan12,nan24,nan36,nan40,nan128 \n" 46 46 << " f4x4 , f8x8 , f11x11 , f20x20 Filled array of nxn dishes \n" 47 47 << " confA , confB, confC, confD : semi-filled array of dishes \n" 48 48 << " hex12,cross11 : ASKAP like double hexagonal (12xD=12m), cross config (11xD=12m) \n" 49 49 << " nan12,nan24,nan36,nan40,nan128: 3,4,6,5,8 cylinder like configurations with 12,24,36,40,128 dishes\n" 50 << " f 3cyl, f8cyl , f3cylp, f8cylp : filled array of non perfect/perfect of n cylinders \n"50 << " f4cyl, f8cyl , f4cylp, f8cylp : filled array of non perfect/perfect of n cylinders \n" 51 51 << " f4cylw : filled array of 4 perfect of wide cylinders \n" 52 52 << " pit2cyl,pit2cylw : 2 cylinders 15mx7m, 20mx10 for z=0.3 at Pittsburg (perfect) \n" … … 159 159 double cylW=12.; // Largeur des cylindres 160 160 double cylRL=2*LAMBDA; // Longeur des elements de reception le long du cylindre 161 double etaW=0.9 5; // Efficacite de couverture en largeur162 double etaRL=0. 9; // Efficacite de couverture le long du cylindre161 double etaW=0.9; // Efficacite de couverture en largeur 162 double etaRL=0.8; // Efficacite de couverture le long du cylindre 163 163 164 164 vector<Dish> vdishes; … … 178 178 vdishes=CreateFilledSqConfig(20,Ddish, Eta); 179 179 } 180 else if (config=="f 3cyl") {181 cylW=1 0.; cylRL=2*LAMBDA;182 vdishes=CreateFilledCylConfig( 3, 92, cylW, cylRL, etaW, etaRL, true);183 } 184 else if (config=="f 3cylp") {185 cylW=1 0.; cylRL=2*LAMBDA;186 vdishes=CreateFilledCylConfig( 3, 92, cylW, cylRL, etaW, etaRL, false);180 else if (config=="f4cyl") { 181 cylW=12.; cylRL=2*LAMBDA; 182 vdishes=CreateFilledCylConfig(4, 100, cylW, cylRL, etaW, etaRL, true); 183 } 184 else if (config=="f4cylp") { 185 cylW=12.; cylRL=2*LAMBDA; 186 vdishes=CreateFilledCylConfig(4, 100, cylW, cylRL, etaW, etaRL, false); 187 187 } 188 188 else if (config=="f4cylw") { … … 207 207 else if (config=="f8cyl") { 208 208 cylW=12.; cylRL=2*LAMBDA; 209 vdishes=CreateFilledCylConfig(8, 1 60, cylW, cylRL, etaW, etaRL, true);209 vdishes=CreateFilledCylConfig(8, 120, cylW, cylRL, etaW, etaRL, true); 210 210 } 211 211 else if (config=="f8cylp") { 212 212 cylW=12.; cylRL=2*LAMBDA; 213 vdishes=CreateFilledCylConfig(8, 1 60, cylW, cylRL, etaW, etaRL, false);213 vdishes=CreateFilledCylConfig(8, 120, cylW, cylRL, etaW, etaRL, false); 214 214 } 215 215 else if (config=="confA") {
Note:
See TracChangeset
for help on using the changeset viewer.