Changeset 1182 in Sophya for trunk/SophyaExt
- Timestamp:
- Sep 8, 2000, 12:24:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/FitsIOServer/fitsspherehealpix.cc
r1179 r1182 89 89 int nSide= dobj_->SizeIndex(); 90 90 dvl["NSIDE"]= (int_4) nSide; 91 cout << " je n'ecris plus nside " << endl; 91 92 dvl.SetComment("NSIDE","Resolution parameter for HEALPIX" ); 92 93 … … 176 177 177 178 int nside= dvl.GetI("NSIDE"); 179 int nPix = 0; 178 180 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; 181 193 if (nPix != nbentries) 182 194 {
Note:
See TracChangeset
for help on using the changeset viewer.