- Timestamp:
- 12/15/11 14:20:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fitsdump.cc
r12724 r12725 13 13 #include "externals/fits.h" 14 14 15 //#define PLOTTING_PLEASE15 #define PLOTTING_PLEASE 16 16 17 17 #ifdef PLOTTING_PLEASE … … 541 541 cout << "Max: " << reinterpret_cast<T*>(array)[numElems-1] << endl; 542 542 if (numElems%2 == 0) 543 cout << "Med: " << (reinterpret_cast<T*>(array)[numElems/2] + reinterpret_cast< int16_t*>(array)[numElems/2+1])/2.f << endl;543 cout << "Med: " << (reinterpret_cast<T*>(array)[numElems/2] + reinterpret_cast<T*>(array)[numElems/2+1])/2.f << endl; 544 544 else 545 545 cout << "Med: " << reinterpret_cast<T*>(array)[numElems/2+1] << endl; … … 616 616 break; 617 617 case 'D': 618 reinterpret_cast< float*>(*statsIt)[i - rangesIt->first + row*span] = reinterpret_cast<double*>(it->second)[i];618 reinterpret_cast<double*>(*statsIt)[i - rangesIt->first + row*span] = reinterpret_cast<double*>(it->second)[i]; 619 619 break; 620 620 default: … … 920 920 for (auto it = xValues.begin(); it != xValues.end(); it++) 921 921 delete[] *it; 922 922 923 delete[] yValues; 924 923 925 delete[] handle; 926 924 927 return 0; 925 928 }
Note:
See TracChangeset
for help on using the changeset viewer.