Changeset 856 in Sophya for trunk/SophyaProg/PMixer/skymixer.cc


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

File:
1 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 ");
Note: See TracChangeset for help on using the changeset viewer.