Changeset 3792 in Sophya for trunk/Cosmo/RadioBeam/applobe.cc


Ignore:
Timestamp:
Jun 28, 2010, 6:06:00 PM (15 years ago)
Author:
ansari
Message:

Ajout du programme de calcul et sauvegarde reponse interfero, Reza 28/06/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/applobe.cc

    r3789 r3792  
    33    R. Ansari , C. Magneville - Juin 2010
    44
    5   Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeamArcmin]
     5  Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeamDoL]
    66---------------------------------------------------------------  */
    77
     
    5050
    5151  if (narg < 3) {
    52     cout << "Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeamArcmin]\n" << endl;
     52    cout << "Usage: applobe In3DPPFName Out3DPPFName [ResmapleFactor=0.5,0.333...] [TargetBeamDoL]\n" << endl;
    5353    return 1;
    5454  }
     
    6464  }
    6565  bool fgcorrbeam=false;
    66   double tbeamarcmin=15.;
     66  double tbeamDoL=135;
    6767  if (narg>4) {
    68     tbeamarcmin=atof(arg[4]);
    69     if (tbeamarcmin>1.e-3)  fgcorrbeam=true;
     68    tbeamDoL=atof(arg[4]);
     69    if (tbeamDoL>1)  fgcorrbeam=true;
    7070  }
    7171
    7272  int rc = 91;
    7373
    74   cout << " ====== applobe :   Input NVSS catalog name= " << inname << " OutName=" << outname;
     74  cout << " ====== applobe :   Input skycube name= " << inname << " OutName=" << outname;
    7575  bool fginmap=true;
    7676  try {
     
    105105
    106106    if (fgcorrbeam) {
    107       double DoL = 1.22/ArcminToRadian(tbeamarcmin);
     107      double DoL = tbeamDoL;
     108      double tbeamarcmin = RadianToDegree(1.22/DoL)*60.;
    108109      Four2DResponse tbeam(2, DoL, DoL );
    109       cout << "applobe[3]: calling Correct2RefLobe() with target beam:" << tbeamarcmin
    110            << " arcmin -> D/Lambda=" << DoL << endl;
     110      cout << "applobe[3]: calling Correct2RefLobe() with target beam D/Lambda=" << DoL
     111           << " -> arcmin " << tbeamarcmin << endl;
    111112      beam.Correct2RefLobe(tbeam, incube, dx, dy, Freq0MHz, dfreq);
    112113    }
Note: See TracChangeset for help on using the changeset viewer.