Changeset 937 in Sophya for trunk/SophyaProg/PMixer


Ignore:
Timestamp:
Apr 14, 2000, 6:11:47 PM (25 years ago)
Author:
ansari
Message:

Sophie: changes to read the SphereHEALPIX with a limited amount
of needed memory

File:
1 edited

Legend:

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

    r931 r937  
    125125      cout << " Reading output HealPix map from FITS file " << (string)ifnm << endl;
    126126      {
    127         FITS_SphereHEALPix<float> fios(ifnm);
    128         outgs = (SphereHEALPix<float>)fios;
     127        FITS_SphereHEALPix<float> fios(&outgs);
     128        fios.ReadF(ifnm,2);
    129129      }
    130130      if(printlev>0)
     
    188188          SphereHEALPix<float> ings(hp_nside);
    189189          {
    190             FITS_SphereHEALPix<float> fiosIn(flnm);
    191             ings = (SphereHEALPix<float>)fiosIn;
     190            FITS_SphereHEALPix<float> fiosIn(&ings);
     191            fiosIn.ReadF(flnm,2);
    192192          }
    193193          if (debuglev > 4) {  // Writing the input map to the outppf
     
    225225              SphereHEALPix<float> betaMap(hp_nside);
    226226              {
    227                 FITS_SphereHEALPix<float> fiosBM(flnm);
    228                 betaMap = (SphereHEALPix<float>)fiosBM;
     227                FITS_SphereHEALPix<float> fiosBM(&betaMap);
     228                fiosBM.ReadF(flnm,2);
     229              }
     230              if (printlev > 2) {
     231                MeanSig(betaMap.DataBlock(), moy, sig );
     232                cout << " MeanSig for Beta map - Mean= " << moy << " Sigma= " << sig << endl;
    229233              }
    230234              if (debuglev > 4) {  // Writing the input map to the outppf
     
    248252                 
    249253                  betaMap.Resize(8);
    250                   MeanSig(intBetaMap.DataBlock(), moy, sig );
    251                   if (printlev > 4)
    252                     cout << "....BetaFits... MeanSig for intBetaMap - Mean= "
    253                          << moy << " Sigma= " << sig << endl;
     254                  if (printlev > 4)
     255                    {
     256                      MeanSig(intBetaMap.DataBlock(), moy, sig );
     257                      cout << "....BetaFits... MeanSig for intBetaMap - Mean= "
     258                           << moy << " Sigma= " << sig << endl;
     259                    }
    254260                  // add the integrated beta map
    255261                  addComponentBeta(outgs,ings,intBetaMap, K);
Note: See TracChangeset for help on using the changeset viewer.