- Timestamp:
- 05/20/11 13:13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/FitsLoader.cc
r10759 r10762 167 167 targetFile.precision(fStreamPrecision); 168 168 map<string, CCfits::Column*>::iterator it; 169 stringstream str; 170 str << "Size of fColMap: " << fColMap.size() << " size of offsets: " << offsets.size(); 171 Debug(str.str()); 172 for (it=fColMap.begin(); it != fColMap.end(); it++) 169 for (it=fColMap.begin(); it != fColMap.end(); it++) 173 170 { 174 171 bool found = false; … … 183 180 if (!found) 184 181 continue; 185 str.str(""); 186 int offset = offsets[it->second->index()-1]; 187 str << "Offset: " << offset; 188 Debug(str.str()); 189 const char* charSrc = reinterpret_cast<char*>(&fitsBuffer[offset]); 182 int offset = offsets[it->second->index()-1]; 183 const char* charSrc = reinterpret_cast<char*>(&fitsBuffer[offset]); 190 184 unsigned char copyBuffer[30];//max size of a single variable 191 185 for (int width = 0; width<it->second->width(); width++) … … 288 282 { 289 283 int width = it->second->width(); 290 stringstream str;291 str << "Width of " << it->first << ": " << it->second->width() << " size: " << size;292 Message(str.str());293 284 switch (it->second->type()) 294 285 { … … 552 543 { 553 544 stringstream str; 554 str << "An error occurred while reading fits row #" << i << " error code: " << status << " " << fTable->rows() << " " << size << " " << sizeof(double);545 str << "An error occurred while reading fits row #" << i << " error code: " << status; 555 546 Error(str.str()); 556 547 str.str(""); … … 561 552 writeValuesFromFits(offsets, targetFile, fitsBuffer); 562 553 } 554 delete[] fitsBuffer; 563 555 return GetCurrentState(); 564 556 }
Note:
See TracChangeset
for help on using the changeset viewer.