Changeset 1105 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc
- Timestamp:
- Jul 27, 2000, 7:32:01 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r709 r1105 21 21 #ifdef SANS_EVOLPLANCK 22 22 #include "fitsimage.h" 23 #else24 #include "fitsioserver.h"25 23 #endif 26 24 … … 855 853 } ENDTRY; 856 854 857 #else858 859 AnyDataObj * obj=NULL;860 FitsIoServer fios;861 char fitsfile[512];862 strncpy(fitsfile, flnm.c_str(), 512); fitsfile[511] = '\0';863 int hdu = 1;864 // Nous essayons de lire jusqu'a l'entete numero 3865 while (hdu < 4) {866 try {867 cout << "NamedObjMgr::ReadFITS() - Trying to read " << flnm868 << " HDU= " << hdu << endl;869 obj = fios.loadobj(fitsfile, hdu);870 if(obj) {871 ok = true;872 hdu = 9999;873 }874 }875 catch(IOExc exc) {876 cerr << "NamedObjMgr::ReadFITS() - IOExc " << exc.Msg() << endl;877 hdu++;878 }879 catch(...) {880 cerr << "NamedObjMgr::ReadFITS() - Error reading " << flnm << endl;881 hdu++;882 // ok = false;883 // hdu = 99999;884 }885 }886 #endif887 855 if (ok && (obj != NULL)) { 888 856 if (nobj.length()<1) nobj = servnobjm->FileName2Name(flnm); 889 857 AddObj((AnyDataObj*)obj, nobj); 890 858 } 859 #else 860 cerr << " NamedObjMgr::ReadFits() Vide ! A faire Reza ! " << endl; 861 #endif 862 891 863 return; 892 864 }
Note:
See TracChangeset
for help on using the changeset viewer.