Changeset 856 in Sophya


Ignore:
Timestamp:
Apr 10, 2000, 3:03:37 PM (25 years ago)
Author:
ansari
Message:

Adapatation a SphereHEALPix (remplacement de SphereGorski) - Reza 10/4/2000

Location:
trunk/SophyaProg/PMixer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/PMixer/skymixer.cc

    r761 r856  
    1515#include "fitsioserver.h"
    1616
    17 #include "spheregorski.h"
     17#include "spherehealpix.h"
     18#include "fiospherehealpix.h"
    1819
    1920#include "radspecvector.h"
     
    9192
    9293
    93 cout << " skymix/Info : NComp = " <<  nskycomp << " SphereGorski_NSide= " << hp_nside << endl;
     94cout << " skymix/Info : NComp = " <<  nskycomp << " SphereHEALPix_NSide= " << hp_nside << endl;
    9495cout << "  ... MapPath = " << (string)mapPath << "  DebugLev= " << debuglev
    9596     << "  PrintLev= " << printlev << endl;
     
    9899if (debuglev > 0) so = new POutPersist("skymixdbg.ppf");
    99100
    100 SphereGorski<float> outgs(hp_nside);
     101SphereHEALPix<float> outgs(hp_nside);
    101102bool okout = false;
    102103
     
    128129  string key;
    129130
    130   SphereGorski<float> ings(hp_nside);  // The input map
     131  SphereHEALPix<float> ings(hp_nside);  // The input map
    131132  double K = 1.;
    132133  // Loop over sky component
     
    141142    K = dc.DParam(key, 1, 1.);
    142143    if (debuglev > 4) {  // Writing tne input map to the outppf
    143       FIO_SphereGorski<float> fiog(ings);
     144      FIO_SphereHEALPix<float> fiog(ings);
    144145      fiog.Write(*so, key);
    145146      }
     
    174175  FitsIoServer fios;
    175176  fios.save(outgs, arg[2]);
    176   cout << "Output Map (SphereGorski<float>) written to FITS file "
     177  cout << "Output Map (SphereHEALPix<float>) written to FITS file "
    177178       << (string)(arg[2]) << endl;
    178179  PrtTim("End of WriteFITS ");
     
    180181  if (narg > 3) {
    181182   POutPersist s(arg[3]);
    182    FIO_SphereGorski<float> fiog(&outgs) ;
     183   FIO_SphereHEALPix<float> fiog(&outgs) ;
    183184   fiog.Write(s);
    184    cout << "Output Map (SphereGorski<float>) written to POutPersist file " 
     185   cout << "Output Map (SphereHEALPix<float>) written to POutPersist file " 
    185186        << (string)(arg[3]) << endl;
    186187   PrtTim("End of WritePPF ");
  • trunk/SophyaProg/PMixer/tgsky.cc

    r809 r856  
    44
    55#include "sambainit.h"
    6 #include "spheregorski.h"
     6#include "spherehealpix.h"
     7#include "fiospherehealpix.h"
    78#include "fitsioserver.h"
    89#include "nbrandom.h"
     
    3233
    3334  int  ns = atoi(arg[1]);
    34   SphereGorski<float> sph(ns);
     35  SphereHEALPix<float> sph(ns);
    3536
    36   cout << "Filling SphereGorski<float> NSide= " << ns
     37  cout << "Filling SphereHEALPix<float> NSide= " << ns
    3738       << "  NPixels= " << sph.NbPixels() << endl;
    3839
     
    7677  // Computing mean and sigma on the sphere
    7778  MeanSig(sph, gmoy, gsig);
    78   cout << "SphereGorski<float> Mean= " << gmoy << "  Sigma = " << gsig << endl;
     79  cout << "SphereHEALPix<float> Mean= " << gmoy << "  Sigma = " << gsig << endl;
    7980  PrtTim("End of Mean-Sig ");
    8081
    8182  if (narg > 5) {
    8283   POutPersist s(arg[5]);
    83    FIO_SphereGorski<float> fiog(&sph) ;
     84   FIO_SphereHEALPix<float> fiog(&sph) ;
    8485   fiog.Write(s);
    85    cout << "SphereGorski<float> written to POutPersist file" 
     86   cout << "SphereHEALPix<float> written to POutPersist file" 
    8687        << (string)(arg[5]) << endl;
    8788   PrtTim("End of WritePPF ");
     
    9293  FitsIoServer fios;
    9394  fios.save(sph, arg[4]);
    94   cout << "SphereGorski<float> written to FITS file " << (string)(arg[4]) << endl;
     95  cout << "SphereHEALPix<float> written to FITS file " << (string)(arg[4]) << endl;
    9596  PrtTim("End of WriteFITS ");
    9697
Note: See TracChangeset for help on using the changeset viewer.