Changeset 568 in Sophya for trunk/SophyaLib/Samba/mlobe.cc
- Timestamp:
- Nov 10, 1999, 3:17:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/mlobe.cc
r470 r568 4 4 #include "timing.h" 5 5 // #include "nbrandom.h" 6 7 /* --Methode-- */ 6 //++ 7 // Class MainLobe 8 // 9 // include mlobe.h sphericalmap.h unitvector.h math.h 10 // 11 // Class for computation of main lobe. 12 // 13 // The lobe values are computed in pixels laying on "nc" slices 14 // with hexagonal pavement around theta=0 , phi=0. The lobe is 15 // gaussian with sigma="sig". The slices are built every 16 // "dels"*sigma. 17 // 18 //-- 19 //++ 20 // Titre Constructor 21 //-- 22 /* --Methode-- */ 23 //++ 8 24 MainLobe::MainLobe(float sig, float dels, int nc) 25 // 26 //-- 9 27 { 10 28 if (sig < 1.e-9) sig = M_PI/100.; // Sigma du lobe gaussien (radians) … … 58 76 59 77 60 /* --Methode-- */ 78 //++ 79 // Titre Constructor 80 //-- 81 /* --Methode-- */ 82 //++ 61 83 MainLobe::~MainLobe() 84 // 85 //-- 62 86 { 63 87 delete mT0; … … 70 94 delete mVal; 71 95 } 72 73 /* --Methode-- */ 96 //++ 97 // Titre Public Methods 98 //-- 99 //++ 100 // 101 // inline int NPix() 102 // Return the total number of pixels of the lobe 103 // inline float Sigma() 104 // inline double Integral() 105 //-- 106 /* --Methode-- */ 107 //++ 74 108 void MainLobe::SetDirection(float teta, float phi) 109 // 110 // orientate the lobe toward the direction (theta, phi) 111 //-- 75 112 { 76 113 int k; … … 124 161 125 162 /* --Methode-- */ 163 //++ 126 164 double MainLobe::Value(int kpx, float& teta, float& phi) 165 // 166 // return the value of the lobe as also the (theta, phi) of the 167 // pixel "kpx" 168 //-- 127 169 { 128 170 if ( (kpx < 0) || (kpx >= mNpix) ) { teta = phi = 0.; return(0.); } … … 133 175 134 176 /* --Methode-- */ 177 //++ 135 178 double MainLobe::Convol(SphericalMap<double>& sph) 179 // 180 // return the value of the lobe convolved with the sky (sphere) "sph" 181 //-- 136 182 { 137 183 double ret=0.; … … 146 192 } 147 193 148 /* --Methode-- */ 194 //++ 195 // 196 // inline void Print() 197 //-- 198 199 //++ 200 // Titre Operators 201 //-- 202 203 /* --Methode-- */ 204 //++ 149 205 ostream& operator << (ostream& s, MainLobe const& lob) 206 // 207 //-- 150 208 { 151 209 s << "MainLobe_Info() : Sigma= " << lob.mSigma << " Dels= " << lob.mDels << " NC= "
Note:
See TracChangeset
for help on using the changeset viewer.