Changeset 3316 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc
- Timestamp:
- Aug 24, 2007, 5:04:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3289 r3316 343 343 PrtTim(">>>> End Computing a realization in Fourier space"); 344 344 345 /* 346 // CMVTEST 347 for(int l=0;l<pkgen.SizeX();l++) 348 for(int j=0;j<pkgen.SizeY();j++) 349 for(int i=0;i<pkgen.SizeZ();i++) { 350 double k2 = fluct3d.Kx(i)*fluct3d.Kx(i) 351 +fluct3d.Ky(j)*fluct3d.Ky(j) 352 +fluct3d.Kz(l)*fluct3d.Kz(l); 353 double pk = (k2>0.)? 1./k2: 0.; 354 //pkgen(l,j,i) = ComplexGaussRan(sqrt(pk/2.)); 355 //pkgen(l,j,i) = sqrt(pk/2.); 356 pkgen(l,j,i) = 1.; 357 } 358 // CMVTEST 359 */ 360 345 361 cout<<"\n--- Checking realization spectra"<<endl; 346 362 HistoErr hpkgen(0.,knyqmax,nherr); … … 366 382 367 383 if(filter_by_pixel!=0) { 368 // A_FAIRE (???) ne faut-il pas dans le cas ou on demande369 // use_growth_factor filtrer uniquement apres avoir appliquer370 // le facteur de croissance ??????371 384 cout<<"\n--- Computing convolution by pixel shape"<<endl; 372 385 fluct3d.FilterByPixel(); … … 419 432 cout<<"rgen.Min = "<<rmin<<" , Max="<<rmax<<endl; 420 433 PrtTim(">>>> End Applying growth factor"); 421 // A_FAIRE (???) ne faut-il pas maintenant retourner dans fourier422 // appliquer les filtre des pixels et re-retourner dans reel ?423 434 } 424 435 … … 453 464 PrtTim(">>>> End Check variance sigmaR in real space"); 454 465 } 466 467 //return -41; // CMVTEST 455 468 456 469 //----------------------------------------------------------------- … … 592 605 } 593 606 594 /*595 ######################################################596 readfits cmvobserv3d_k0.fits597 readfits cmvobserv3d_k.fits598 readfits cmvobserv3d_r0.fits599 readfits cmvobserv3d_r.fits600 readfits cmvobserv3d_rf.fits601 602 openppf cmvobserv3d_k0.ppf603 openppf cmvobserv3d_k.ppf604 openppf cmvobserv3d_r0.ppf605 openppf cmvobserv3d_r.ppf606 openppf cmvobserv3d_rf.ppf607 608 # pour le plot 2D d'une slice en Z du 3D: xy2d nom_obj3D num_slice609 defscript xy2d610 objaoper $1 sliceyz $2611 mv sliceyz_${2} ${1}_Z_$2612 disp ${1}_Z_$2613 echo display slice $2 of $1 name is ${1}_Z_$2614 endscript615 616 # pour le plot 2D d'une slice en Y du 3D: xz2d nom_obj3D num_slice617 defscript xz2d618 objaoper $1 slicexy $2619 mv slicexy_${2} ${1}_Y_$2620 disp ${1}_Y_$2621 echo display slice $2 of $1 name is ${1}_Y_$2622 endscript623 624 # pour le plot 2D d'une slice en X du 3D: yz2d nom_obj3D num_slice625 defscript yz2d626 objaoper $1 slicexz $2627 mv slicexz_${2} ${1}_X_$2628 disp ${1}_X_$2629 echo display slice $2 of $1 name is ${1}_X_$2630 endscript631 632 xy2d $cobj 0633 xz2d $cobj 0634 yz2d $cobj 0635 636 ######################################################637 openppf cmvobserv3d_s_r0.ppf638 openppf cmvobserv3d_s_rn.ppf639 openppf cmvobserv3d_s_r.ppf640 openppf cmvobserv3d_s_rf.ppf641 642 ######################################################643 openppf cmvobserv3d.ppf644 645 zone646 set k pow(10.,x)647 n/plot hpkz.val*$k*$k/(2*M_PI*M_PI)%x ! "connectpoints"648 649 echo ${hpkgen.sum}650 echo ${hpkgenf.sum}651 echo ${hpkrec.sum}652 653 zone654 n/plot hpkz.val%x ! ! "nsta connectpoints"655 n/plot hpkgen.val%log10(x) x>0 ! "nsta same red connectpoints"656 n/plot hpkgenf.val%log10(x) x>0 ! "nsta same orange connectpoints"657 n/plot hpkrec.val%log10(x) x>0 ! "nsta same blue connectpoints"658 659 disp hpkgen "hbincont err"660 disp hpkgenf "hbincont err"661 disp hpkrec "hbincont err"662 663 zone 2 2664 imag hpkgen2665 imag hpkgenf2666 imag hpkrec2667 668 zone 2 1669 disp hmdndm "nsta"670 disp tirhmdndm "nsta"671 addline 0 1 20 1 "red"672 673 */
Note:
See TracChangeset
for help on using the changeset viewer.