Changeset 1182 in Sophya for trunk/SophyaExt/FitsIOServer


Ignore:
Timestamp:
Sep 8, 2000, 12:24:14 PM (25 years ago)
Author:
ansari
Message:

suppression controle sur nside

File:
1 edited

Legend:

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

    r1179 r1182  
    8989  int nSide= dobj_->SizeIndex();
    9090  dvl["NSIDE"]= (int_4) nSide;
     91  cout << " je n'ecris plus nside " << endl;
    9192  dvl.SetComment("NSIDE","Resolution parameter for HEALPIX" );
    9293
     
    176177
    177178  int nside= dvl.GetI("NSIDE");
     179  int nPix = 0;
    178180  if(nside <= 0)
    179     throw IOExc("FITS_SphereHEALPix:: No resol parameter nside");
    180   int nPix = 12*nside*nside;
     181    {
     182      //      throw IOExc("FITS_SphereHEALPix:: No resol parameter nside");
     183      if (lastpix>0)
     184        {
     185          nside = sqrt(nbentries/12);
     186        }
     187      else
     188        {
     189           throw IOExc("FITS_SphereHEALPix:: No NSIDE nor LASTPIX on file");
     190        }
     191    }
     192  nPix = 12*nside*nside;
    181193  if (nPix != nbentries)
    182194    {
Note: See TracChangeset for help on using the changeset viewer.