Changeset 12725 for trunk


Ignore:
Timestamp:
12/15/11 14:20:23 (13 years ago)
Author:
lyard
Message:
bugfix fitsdump
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fitsdump.cc

    r12724 r12725  
    1313#include "externals/fits.h"
    1414
    15 //#define PLOTTING_PLEASE
     15#define PLOTTING_PLEASE
    1616
    1717#ifdef PLOTTING_PLEASE
     
    541541    cout << "Max: " << reinterpret_cast<T*>(array)[numElems-1] << endl;
    542542    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;
    544544    else
    545545        cout << "Med: " << reinterpret_cast<T*>(array)[numElems/2+1] << endl;
     
    616616                        break;
    617617                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];
    619619                        break;
    620620                default:
     
    920920    for (auto it = xValues.begin(); it != xValues.end(); it++)
    921921        delete[] *it;
     922
    922923    delete[] yValues;
     924
    923925    delete[] handle;
     926
    924927    return 0;
    925928}
Note: See TracChangeset for help on using the changeset viewer.