Changeset 12724
- Timestamp:
- 12/15/11 10:47:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsdump.cc
r12723 r12724 13 13 #include "externals/fits.h" 14 14 15 #define PLOTTING_PLEASE15 //#define PLOTTING_PLEASE 16 16 17 17 #ifdef PLOTTING_PLEASE … … 57 57 58 58 private: 59 fits* fFile; 59 60 bool fDotsPlease; 60 fits* fFile;61 61 string fFilename; 62 62 … … 205 205 } 206 206 207 bool FitsDumper::OpenTable(const string & tablename)207 bool FitsDumper::OpenTable(const string &) 208 208 { 209 209 if (!fFile) … … 370 370 const fits::Table::Column& col = fColMap[*it]; 371 371 // const MyColumn *col = static_cast<MyColumn*>(fTable->column()[*it]); 372 if (rangesIt->first != 0 || rangesIt->second != col.num)372 if (rangesIt->first != 0 || rangesIt->second != (int)(col.num)) 373 373 { 374 374 out << "#"; … … 632 632 rangesIt = ranges.begin(); 633 633 auto statsIt = statData.begin(); 634 int round; 634 635 635 auto nameIt = listNamesOnly.begin(); 636 636 for (auto it=columnsData.begin(); it != columnsData.end(); it++, rangesIt++, statsIt++, nameIt++) … … 785 785 // stringstream str; 786 786 str.str(""); 787 int status = 0; 787 788 788 789 789 vector<double*> xValues(totalSize); … … 807 807 for (auto it=columnsData.begin(); it != columnsData.end(); it++, rangesIt++) 808 808 { 809 for (int i=rangesIt->first; i<rangesIt->second; i++)809 for (int j=rangesIt->first; j<rangesIt->second; j++) 810 810 { 811 811 switch (it->first) { 812 812 case 'L': 813 str << reinterpret_cast<bool*>(it->second)[ i] << " ";813 str << reinterpret_cast<bool*>(it->second)[j] << " "; 814 814 break; 815 815 case 'B': 816 str << reinterpret_cast<char*>(it->second)[ i] << " ";816 str << reinterpret_cast<char*>(it->second)[j] << " "; 817 817 break; 818 818 case 'I': 819 str << reinterpret_cast<int16_t*>(it->second)[ i] << " ";819 str << reinterpret_cast<int16_t*>(it->second)[j] << " "; 820 820 break; 821 821 case 'J': 822 str << reinterpret_cast<int32_t*>(it->second)[ i] << " ";822 str << reinterpret_cast<int32_t*>(it->second)[j] << " "; 823 823 break; 824 824 case 'K': 825 str << reinterpret_cast<int64_t*>(it->second)[ i] << " ";825 str << reinterpret_cast<int64_t*>(it->second)[j] << " "; 826 826 break; 827 827 case 'E': 828 str << reinterpret_cast<float*>(it->second)[ i] << " ";828 str << reinterpret_cast<float*>(it->second)[j] << " "; 829 829 break; 830 830 case 'D': 831 str << reinterpret_cast<double*>(it->second)[ i] << " ";831 str << reinterpret_cast<double*>(it->second)[j] << " "; 832 832 break; 833 833 default:
Note:
See TracChangeset
for help on using the changeset viewer.