Changeset 1148 in Sophya for trunk/SigPredictor/TestSources.cc
- Timestamp:
- Aug 29, 2000, 12:03:24 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SigPredictor/TestSources.cc
r798 r1148 9 9 10 10 #ifdef __MWERKS__ 11 #include "mwerksmath.h"12 11 #include "unixmac.h" 13 12 #include "macenvvariables.h" … … 15 14 16 15 #include "squarefilt.h" 17 #include "fitsioserver.h"18 16 19 17 #include "alllobe.h" … … 23 21 #define NLatTestMap (256) 24 22 25 static FitsIoServer FitsServer;26 23 int CompareMapResults(); 27 24 int TestSommeMapsInBand(char file1[], long nlat); … … 56 53 char filename[150]; 57 54 // On lit les donnees brutes 58 Sphere Gorski<float> PowerMap(nlat); // Pour se mettre a l'unite nW/m2/St55 SphereHEALPix<r_4> PowerMap(nlat); // Pour se mettre a l'unite nW/m2/St 59 56 60 57 // Definition channel C … … 86 83 87 84 // On ajoute du bruit 88 { Sphere Gorski<float> NoiseChanCMap(nlat);85 { SphereHEALPix<r_4> NoiseChanCMap(nlat); 89 86 sprintf(filename, "%schannelC_noise_res%04i.fits",PATHSTangoRes,nlat); 90 87 FitsServer.load(NoiseChanCMap,filename); … … 104 101 // Test-Validation Ptotale si ca se passe bien 105 102 { 106 Sphere Gorski<float> ObsTotSTango(256);103 SphereHEALPix<r_4> ObsTotSTango(256); 107 104 sprintf(filename, "%schannelC_obs_res0256.fits",PATHSTangoRes); 108 105 FitsServer.load(ObsTotSTango,filename); … … 143 140 144 141 // La carte 145 Sphere Gorski<float> ChannelCConvolue(nlat);142 SphereHEALPix<r_4> ChannelCConvolue(nlat); 146 143 147 144 // On convolue … … 167 164 char* PATHSTangoRes=getenv("PATHSTangoRes"); 168 165 #endif 169 Sphere Gorski<float> ObsConvolSTango(nlat);166 SphereHEALPix<r_4> ObsConvolSTango(nlat); 170 167 sprintf(filename, "%schannelC_convolved.fits",PATHSTangoRes); 171 168 FitsServer.load(ObsConvolSTango,filename); … … 183 180 cout<<" Moy="<<Moy<<" sigma="<<sigma<<endl<<endl; 184 181 185 Sphere Gorski<float> ChannelCConvolue(nlat);182 SphereHEALPix<r_4> ChannelCConvolue(nlat); 186 183 sprintf(filename,"ChannelConvolue%04i.fits",nlat); 187 184 FitsServer.load(ChannelCConvolue,filename); … … 234 231 /* 235 232 // Test Module synchrotron 236 Sphere Gorski<float> ChanCSynchro(256);237 Sphere Gorski<float> MYCSynchro(256);233 SphereHEALPix<r_4> ChanCSynchro(256); 234 SphereHEALPix<r_4> MYCSynchro(256); 238 235 239 236 … … 279 276 /* 280 277 // Test Module CMB 281 Sphere Gorski<float> ChanCCMB(256);282 Sphere Gorski<float> MYCCMB(256);278 SphereHEALPix<r_4> ChanCCMB(256); 279 SphereHEALPix<r_4> MYCCMB(256); 283 280 284 281 // Sans lobes d'abord: Integrale sur les dependances spectrales … … 322 319 323 320 // Test Module poussire diffuse 324 Sphere Gorski<float> ChanCDiffDust(256);325 Sphere Gorski<float> MYCDiffDust(256);321 SphereHEALPix<r_4> ChanCDiffDust(256); 322 SphereHEALPix<r_4> MYCDiffDust(256); 326 323 327 324 … … 364 361 365 362 366 Sphere Gorski<float>* pTestMap;367 pTestMap= new Sphere Gorski<float>(64);368 Sphere Gorski<float>& TestMap=(*pTestMap);363 SphereHEALPix<r_4>* pTestMap; 364 pTestMap= new SphereHEALPix<r_4>(64); 365 SphereHEALPix<r_4>& TestMap=(*pTestMap); 369 366 370 367 #ifndef __MWERKS__
Note:
See TracChangeset
for help on using the changeset viewer.