Ignore:
Timestamp:
Apr 3, 2006, 2:20:29 PM (19 years ago)
Author:
ansari
Message:

Suppression de toute reference a FITS (en particulier NObjMgrAdapter::ReadFits/SaveFits supprime) dans le module PIext - Makefile et smakefile refait , Reza 3 Avril 2006

File:
1 edited

Legend:

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

    r2683 r2933  
    1515#else
    1616#include "objfitter.h"
    17 #include "fitstarray.h"
    1817#endif
    1918
     
    7271}
    7372
    74 /* --Methode-- */
    75 template <class T>
    76 void NOMAdapter_Image<T>::ReadFits(string const & flnm)
    77 {
    78 #ifdef SANS_EVOLPLANCK
    79   cerr << " NOMAdapter_Image<T>::ReadFits() Non disponible !! " << endl;
    80 #else
    81   FitsInFile fis(flnm);
    82   fis >> (*mImg);
    83 #endif
    84 }
    85 
    86 /* --Methode-- */
    87 template <class T>
    88 void NOMAdapter_Image<T>::SaveFits(string const & flnm)
    89 {
    90 #ifdef SANS_EVOLPLANCK
    91 FitsImage<T> fim(*mImg, 1);
    92 fim.Save(flnm);
    93 #else
    94   FitsOutFile fos(flnm);
    95   fos << (*mImg);
    96 #endif
    97 }
    98 
    99 #ifndef SANS_EVOLPLANCK
    100 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    101 void NOMAdapter_Image< uint_2 >::SaveFits(string const & flnm)
    102 {
    103 cout << " NOMAdapter_Image< uint_2 >::SaveFits() - Error "
    104      << " Not supported uint_2 data type ! " << endl;
    105 }
    106 
    107 DECL_TEMP_SPEC  /* equivalent a template <> , pour SGI-CC en particulier */
    108 void NOMAdapter_Image< uint_2 >::ReadFits(string const & flnm)
    109 {
    110 cout << " NOMAdapter_Image< uint_2 >::ReadFits() - Error "
    111      << " Not supported uint_2 data type ! " << endl;
    112 }
    113 #endif
    11473
    11574/* --Methode-- */
Note: See TracChangeset for help on using the changeset viewer.