Changeset 4026 in Sophya for trunk/Cosmo/RadioBeam/specpk.h


Ignore:
Timestamp:
Oct 10, 2011, 11:31:03 PM (14 years ago)
Author:
ansari
Message:

Modif programme pknoise.cc et classes Four3DPk, PkNoiseCalculator pour calcul spectre de bruit en faisant varier la reponse instrumentale avec la frequence, Reza 10/10/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/specpk.h

    r3947 r4026  
    5151  { int olev=prtlev_; prtlev_=lev; prtmodulo_=prtmod; return olev; }
    5252  void ComputeFourierAmp(SpectralShape& pk);
    53   void ComputeNoiseFourierAmp(Four2DResponse& resp, bool crmask=false);
     53// angscale is a multiplicative factor converting transverse k (wave number) values to angular wave numbers
     54// typically = ComovRadialDistance
     55  void ComputeNoiseFourierAmp(Four2DResponse& resp, double angscale=1., bool crmask=false);
     56  void ComputeNoiseFourierAmp(Four2DResponse& resp, double f0, double df, double angscale=1.);
     57
    5458// Return the array size
    5559  inline sa_size_t NCells() { return fourAmp.Size(); }
     
    6569  void  ComputePkCumul(HProf& hp, double s2cut=0.);
    6670
    67   HProf ComputeNoisePk(Four2DResponse& resp, Histo& fracmodok, DataTable& dt,
     71// angscale is a multiplicative factor converting transverse k (wave number) values to angular wave numbers
     72// typically = ComovRadialDistance
     73  HProf ComputeNoisePk(Four2DResponse& resp, Histo& fracmodok, DataTable& dt, double angscale=1.,
    6874                       double s2cut=0., int nbin=256, double kmin=0., double kmax=-1.);
    6975
     
    8591  PkNoiseCalculator(Four3DPk& pk3, Four2DResponse& rep, double s2cut=100., int ngen=1, const char* tit="PkNoise");
    8692 
     93  inline void SetFreqRange(double freq0=835.,double dfreq=0.5)
     94  { freq0_=freq0;  dfreq_=dfreq; }
     95  inline void SetAngScaleConversion(double angscale=1.)
     96  { angscale_=angscale; }
    8797  inline void SetS2Cut(double s2cut=100.)
    8898  {  S2CUT=s2cut; }
     
    95105  Four3DPk& pkn3d;
    96106  Four2DResponse& frep;
     107  double freq0_,dfreq_;
     108  double angscale_;
    97109  double S2CUT;
    98110  int NGEN;
Note: See TracChangeset for help on using the changeset viewer.