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/nomtmatvecadapter.cc

    r1315 r1321  
    1515
    1616#include "fioarr.h"
    17 
     17#include "fitstarray.h"
    1818
    1919
     
    6969if (v != NULL) return( new TVector<T>(*v, share) );
    7070else return ( new TMatrix<T>(*mMtx, share) );
     71}
     72
     73/* --Methode-- */
     74template <class T>
     75void NOMAdapter_TMatrix<T>::ReadFits(string const & flnm)
     76{
     77  FitsInFile fis(flnm);
     78  fis >> (*mMtx);
     79}
     80
     81/* --Methode-- */
     82template <class T>
     83void NOMAdapter_TMatrix<T>::SaveFits(string const & flnm)
     84{
     85  FitsOutFile fos(flnm);
     86  fos << (*mMtx);
     87}
     88// ---- Specialisation pour complexes -----
     89void NOMAdapter_TMatrix< complex<r_4> >::ReadFits(string const & flnm)
     90{
     91cout << " NOMAdapter_TMatrix< complex<r_4> >::ReadFits() - Error "
     92     << " Not supported (complex data type)" << endl;
     93}
     94void NOMAdapter_TMatrix< complex<r_4> >::SaveFits(string const & flnm)
     95{
     96cout << " NOMAdapter_TMatrix< complex<r_4> >::SaveFits() - Error "
     97     << " Not supported (complex data type)" << endl;
     98}
     99
     100void NOMAdapter_TMatrix< complex<r_8> >::ReadFits(string const & flnm)
     101{
     102cout << " NOMAdapter_TMatrix< complex<r_8> >::ReadFits() - Error "
     103     << " Not supported (complex data type)" << endl;
     104}
     105void NOMAdapter_TMatrix< complex<r_8> >::SaveFits(string const & flnm)
     106{
     107cout << " NOMAdapter_TMatrix< complex<r_8> >::SaveFits() - Error "
     108     << " Not supported (complex data type)" << endl;
    71109}
    72110
Note: See TracChangeset for help on using the changeset viewer.