Changeset 2979 in Sophya for trunk/SophyaExt


Ignore:
Timestamp:
Jun 21, 2006, 10:39:17 AM (19 years ago)
Author:
ansari
Message:

prise en charge lecture/ecriture HEALPix en NESTED , Reza 21/06/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsspherehealpix.cc

    r2974 r2979  
    215215
    216216  string ordering= dvl.GetS("ORDERING");
    217   //  if(ordering.compare(0,3,"RING",0,3) != 0)  $CHECK$ Reza 2/05/2000
    218   if(ordering.substr(0,4) != "RING" )
    219     {
    220       cerr << "FITS_SphereHEALPix/Error Not supported ORDERING= "
    221            << ordering << " substr(0,4)=[" << ordering.substr(0,4) << "]" << endl;
    222       throw IOExc(" FITS_SphereHEALPix:: numerotation non RING");
    223     }
     217  if ( (ordering.substr(0,4) != "RING" ) && (ordering.substr(0,6) != "NESTED" ) )  {
     218    cerr << "FITS_SphereHEALPix/Error Not supported ORDERING= " << ordering
     219         << " != RING/NESTED " << endl;
     220    throw FitsIOException("FITS_SphereHEALPix/Error ordering != RING/NESTED ");
     221  }
     222
     223  bool fgring = true;
     224  if (ordering.substr(0,4) != "RING" )  fgring = false;
    224225
    225226  int nside= dvl.GetI("NSIDE");
     
    250251      }
    251252  double Omega= 4.0*Pi/nPix;
    252   dobj_->setParameters(nside,nPix,Omega);
     253  dobj_->setParameters(nside,nPix,Omega,fgring);
    253254  // On lit les DataBlocks;
    254255  //
Note: See TracChangeset for help on using the changeset viewer.