- Timestamp:
- 05/30/13 15:59:22 (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsCompressor.cc
r16485 r16502 736 736 header.push_back(HeaderEntry("CHECKSUM", "'0000000000000000' ", "Checksum for the whole HDU")); 737 737 header.push_back(HeaderEntry("DATASUM" , " 0" , "Checksum for the data block")); 738 header.push_back(HeaderEntry("EXTNAME" , "'ZDrsCellOffsets' ", "name of this binary table extension"));738 header.push_back(HeaderEntry("EXTNAME" , "'ZDrsCellOffsets' ", "name of this binary table extension")); 739 739 header.push_back(HeaderEntry("TTYPE1" , "'OffsetCalibration' ", "label for field 1")); 740 740 header.push_back(HeaderEntry("TFORM1" , "'1474560I' ", "data format of field: 2-byte INTEGER")); … … 1738 1738 { 1739 1739 const int thisStartCell = reinterpret_cast<int16_t*>(&buffer[startCellOffset])[j]; 1740 if (thisStartCell > -1)1740 if (thisStartCell < 0) continue; 1741 1741 for (int k=0;k<numSlices;k++) 1742 1742 reinterpret_cast<int16_t*>(&buffer[dataOffset])[numSlices*j + k] -= drsCalib16[1024*j + (thisStartCell+k)%1024]; … … 1858 1858 if (tableName == "") 1859 1859 { 1860 cout << "Error: table name could not be found. Aborting" << endl;1860 cout << "Error: table name from file " << fileNameOut << " could not be found. Aborting" << endl; 1861 1861 return -1; 1862 1862 } -
trunk/Mars/mcore/factfits.h
r16485 r16502 60 60 for (uint32_t i=0; i<1440*1024; i+=1024, startCell++) 61 61 { 62 if ((*startCell) > -1)63 62 for (uint32_t j=0; j<fNumRoi; j++, data++) 63 { 64 if ((*startCell) < 0) continue; 64 65 *data += fOffsetCalibration[i + (*startCell+j)%1024]; 66 } 65 67 } 66 68 }
Note:
See TracChangeset
for help on using the changeset viewer.