Changeset 17607
- Timestamp:
- 03/12/14 14:34:37 (11 years ago)
- Location:
- trunk/Mars/mcore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/fits.h
r17392 r17607 265 265 num_rows = is_compressed ? Get<size_t>("ZNAXIS2") : Get<size_t>("NAXIS2"); 266 266 num_cols = Get<size_t>("TFIELDS"); 267 datasum = is_compressed ? Get<int64_t>(" ZDATASUM", -1) : Get<int64_t>("DATASUM", -1);267 datasum = is_compressed ? Get<int64_t>("DATASUM", -1) : Get<int64_t>("DATASUM", -1); 268 268 //cout << "IS COMPRESSED =-========= " << is_compressed << " " << Get<size_t>("NAXIS1") << endl; 269 269 size_t bytes = 0; -
trunk/Mars/mcore/zfits.h
r17402 r17607 20 20 // Basic constructor 21 21 zfits(const std::string& fname, const std::string& tableName="", bool force=false) 22 : fCatalogInitialized(false), fNumTiles(0), fNumRowsPerTile(0), fCurrentRow(- 2), fHeapOff(0), fTileSize(0)22 : fCatalogInitialized(false), fNumTiles(0), fNumRowsPerTile(0), fCurrentRow(-1), fHeapOff(0), fTileSize(0) 23 23 { 24 24 open(fname.c_str()); … … 29 29 // Alternative contstructor 30 30 zfits(const std::string& fname, const std::string& fout, const std::string& tableName, bool force=false) 31 : fCatalogInitialized(false), fNumTiles(0), fNumRowsPerTile(0), fCurrentRow(- 2), fHeapOff(0), fTileSize(0)31 : fCatalogInitialized(false), fNumTiles(0), fNumRowsPerTile(0), fCurrentRow(-1), fHeapOff(0), fTileSize(0) 32 32 { 33 33 open(fname.c_str()); … … 316 316 // seek for the sub tile. If we were just reading the previous one 317 317 // we can skip that. 318 if (!isNextTile )318 if (!isNextTile || requestedTile==0) 319 319 { 320 320 // step to the beginnig of the super tile … … 335 335 // this is now the beginning of the sub-tile we want to read 336 336 const int64_t subTileStart = tellg() - fHeapOff; 337 338 337 // calculate the 32 bits offset of the current tile. 339 338 const uint32_t offset = (subTileStart + fHeapFromDataStart)%4; … … 387 386 if (isNextTile) 388 387 { 388 // std::cout << "Updating checksum" << std::endl; 389 389 // Padding for checksum calculation 390 390 memset(fCompressedBuffer.data(), 0, offset);
Note:
See TracChangeset
for help on using the changeset viewer.