Changeset 3792 in Sophya for trunk/Cosmo/RadioBeam/applobe.cc
- Timestamp:
- Jun 28, 2010, 6:06:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/applobe.cc
r3789 r3792 3 3 R. Ansari , C. Magneville - Juin 2010 4 4 5 Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeam Arcmin]5 Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeamDoL] 6 6 --------------------------------------------------------------- */ 7 7 … … 50 50 51 51 if (narg < 3) { 52 cout << "Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeam Arcmin]\n" << endl;52 cout << "Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeamDoL]\n" << endl; 53 53 return 1; 54 54 } … … 64 64 } 65 65 bool fgcorrbeam=false; 66 double tbeam arcmin=15.;66 double tbeamDoL=135; 67 67 if (narg>4) { 68 tbeam arcmin=atof(arg[4]);69 if (tbeam arcmin>1.e-3) fgcorrbeam=true;68 tbeamDoL=atof(arg[4]); 69 if (tbeamDoL>1) fgcorrbeam=true; 70 70 } 71 71 72 72 int rc = 91; 73 73 74 cout << " ====== applobe : Input NVSS catalogname= " << inname << " OutName=" << outname;74 cout << " ====== applobe : Input skycube name= " << inname << " OutName=" << outname; 75 75 bool fginmap=true; 76 76 try { … … 105 105 106 106 if (fgcorrbeam) { 107 double DoL = 1.22/ArcminToRadian(tbeamarcmin); 107 double DoL = tbeamDoL; 108 double tbeamarcmin = RadianToDegree(1.22/DoL)*60.; 108 109 Four2DResponse tbeam(2, DoL, DoL ); 109 cout << "applobe[3]: calling Correct2RefLobe() with target beam :" << tbeamarcmin110 << " arcmin -> D/Lambda=" << DoL<< endl;110 cout << "applobe[3]: calling Correct2RefLobe() with target beam D/Lambda=" << DoL 111 << " -> arcmin " << tbeamarcmin << endl; 111 112 beam.Correct2RefLobe(tbeam, incube, dx, dy, Freq0MHz, dfreq); 112 113 }
Note:
See TracChangeset
for help on using the changeset viewer.