Changeset 3789 in Sophya for trunk/Cosmo/RadioBeam/lobe.cc


Ignore:
Timestamp:
Jun 27, 2010, 4:57:36 PM (15 years ago)
Author:
ansari
Message:

Corrections diverses, Reza 27/06/2010

File:
1 edited

Legend:

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

    r3788 r3789  
    66
    77
    8 #include "fftwserver.h"   
     8#include "fftwserver.h"
     9#include "matharr.h"   
    910#include "ctimer.h"   
    1011
     
    3839    conv.setFrequency(f0+kz*df);
    3940    fresp_.setLambda(conv.getLambda());
     41    //    cout << " DEBUG*" << kz << " lambda=" << conv.getLambda() << " lambda_ratio_=" << fresp_.lambda_ratio_ << endl;
    4042    ApplyLobeK2D(fresp_, fourAmp, dkx, dky);
    4143    ffts.FFTBackward(fourAmp, slice, true);
    4244    if (kz%20==0)  cout << "BeamEffect::ApplyLobe3D() done kz=" << kz << " / a.SizeZ()=" << a.SizeZ() << endl;
    4345  }
     46  double mean, sigma;
     47  TF min, max;
     48  a.MinMax(min, max);
     49  MeanSigma(a, mean, sigma);
     50  cout << " BeamEffect::ApplyLobe3D() - Result Min=" << min << " Max=" << max
     51       << " Mean=" << mean << " Sigma=" << sigma << endl;
    4452  return;
    4553}
     
    6472    conv.setFrequency(f0+kz*df);
    6573    fresp_.setLambda(conv.getLambda());
    66     Four2DRespRatio rratio(fresp_, rep);
     74    Four2DRespRatio rratio(rep, fresp_);
    6775    ApplyLobeK2D(rratio, fourAmp, dkx, dky);
    6876    ffts.FFTBackward(fourAmp, slice, true);
    6977    if (kz%20==0)  cout << "BeamEffect::Correct2RefLobe() done kz=" << kz << " / a.SizeZ()=" << a.SizeZ() << endl;
    7078  }
     79  double mean, sigma;
     80  TF min, max;
     81  a.MinMax(min, max);
     82  MeanSigma(a, mean, sigma);
     83  cout << " BeamEffect::Correct2RefLobe() - Result Min=" << min << " Max=" << max
     84       << " Mean=" << mean << " Sigma=" << sigma << endl;
    7185  return;
    7286}
     
    7488/* --Methode-- */
    7589void BeamEffect::ApplyLobeK2D(Four2DResponse& rep, TArray< complex<TF> >& fourAmp, double dkx, double dky)
    76 //  dx, dy en radians, lambda en metres
    7790{
    7891  double kxx, kyy;
Note: See TracChangeset for help on using the changeset viewer.