- Timestamp:
- 05/29/13 01:16:50 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsCompressor.cc
r16285 r16418 1476 1476 1477 1477 //Open input's fits file 1478 fact Fits inFile(fileNameIn);1478 factfits inFile(fileNameIn); 1479 1479 1480 1480 if (inFile.IsCompressedFITS()) … … 1504 1504 1505 1505 //Because the file to open MUST be given by the constructor, I must use a pointer instead 1506 fact Fits* drsFile = NULL;1506 factfits* drsFile = NULL; 1507 1507 //try to open the Drs file. If any. 1508 1508 if (drsFileName != "") … … 1510 1510 try 1511 1511 { 1512 drsFile = new fact Fits(drsFileName);1512 drsFile = new factfits(drsFileName); 1513 1513 } 1514 1514 catch (...) … … 1762 1762 1763 1763 //get a compressed reader 1764 fact Fits verifyFile(fileNameOut, tableName, false);1764 factfits verifyFile(fileNameOut, tableName, false); 1765 1765 1766 1766 //and the header of the compressed file -
trunk/Mars/mcore/factfits.h
r16417 r16418 57 57 58 58 int16_t *startCell = reinterpret_cast<int16_t*>(fBufferRow.data() + offset + fOffsetStartCellData); 59 int16_t *data = reinterpret_cast<int16_t*>(fBufferRow.data() + offset + fOffsetData); 59 60 const Pointers::iterator dtaIt = fPointers.find("Data"); 61 if (dtaIt == fPointers.end()) return true; 62 int16_t *data = reinterpret_cast<int16_t*>(dtaIt->second); 60 63 61 64 for (uint32_t i=0; i<1440*1024; i+=1024, startCell++) -
trunk/Mars/mcore/zfits.h
r16416 r16418 146 146 //swap the bytes 147 147 int64_t tempValues[2] = {0,0}; 148 revcpy<8>(reinterpret_cast<char*>( tempValues[0]), readBuf, 2);148 revcpy<8>(reinterpret_cast<char*>(&tempValues[0]), readBuf, 2); 149 149 150 150 //add catalog entry … … 153 153 154 154 //see if there is a gap before heap data 155 fHeapOff = fTable.GetHeapShift();155 fHeapOff = tellg()+fTable.GetHeapShift(); 156 156 } 157 157 … … 179 179 180 180 //skip to the beginning of the tile 181 seekg(f Catalog[currentCatRow][0].second, ios_base::cur);181 seekg(fHeapOff+fCatalog[currentCatRow][0].second); 182 182 read(fCompressedBuffer.data(), sizeToRead); 183 183
Note:
See TracChangeset
for help on using the changeset viewer.