Ignore:
Timestamp:
Nov 13, 2000, 4:32:34 PM (25 years ago)
Author:
ercodmgr
Message:

Adaptateur de TArray et lecture FITS - Reza 13/11/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nomimagadapter.cc

    r1315 r1321  
    1414#else
    1515#include "objfitter.h"
     16#include "fitstarray.h"
    1617#endif
    1718
     
    7273/* --Methode-- */
    7374template <class T>
     75void NOMAdapter_Image<T>::ReadFits(string const & flnm)
     76{
     77#ifdef SANS_EVOLPLANCK
     78  cerr << " NOMAdapter_Image<T>::ReadFits() Non disponible !! " << endl;
     79#else
     80  FitsInFile fis(flnm);
     81  fis >> (*mImg);
     82#endif
     83}
     84
     85/* --Methode-- */
     86template <class T>
    7487void NOMAdapter_Image<T>::SaveFits(string const & flnm)
    7588{
     
    7891fim.Save(flnm);
    7992#else
    80 string s = typeid(*mImg).name();
    81 cout << "NOMAdapter_Image<T>::SaveFits() - Error : Not supported for " << s << endl;
    82 #endif
    83 }
     93  FitsOutFile fos(flnm);
     94  fos << (*mImg);
     95#endif
     96}
     97
     98#ifndef SANS_EVOLPLANCK
     99void NOMAdapter_Image< uint_2 >::SaveFits(string const & flnm)
     100{
     101cout << " NOMAdapter_Image< uint_2 >::SaveFits() - Error "
     102     << " Not supported uint_2 data type ! " << endl;
     103}
     104
     105void NOMAdapter_Image< uint_2 >::ReadFits(string const & flnm)
     106{
     107cout << " NOMAdapter_Image< uint_2 >::ReadFits() - Error "
     108     << " Not supported uint_2 data type ! " << endl;
     109}
     110#endif
    84111
    85112/* --Methode-- */
Note: See TracChangeset for help on using the changeset viewer.