Changeset 1321 in Sophya for trunk/SophyaPI/PIext/nomskymapadapter.cc
- Timestamp:
- Nov 13, 2000, 4:32:34 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomskymapadapter.cc
r1315 r1321 14 14 #include "complexios.h" 15 15 16 #include "fitsspherehealpix.h" 17 #include "fitslocalmap.h" 18 19 16 20 // Classe array adapter pour localMap 17 21 template <class T> … … 105 109 return(NULL); 106 110 } 111 112 /* --Methode-- */ 113 template <class T> 114 void NOMAdapter_PixelMap<T>::ReadFits(string const & flnm) 115 { 116 LocalMap<T>* lm = dynamic_cast< LocalMap<T> * >(mMap); 117 if (lm != NULL) { 118 FitsInFile fis(flnm); 119 fis >> (*lm); 120 return; 121 } 122 SphereHEALPix<T>* sg = dynamic_cast< SphereHEALPix<T> * >(mMap); 123 if (sg != NULL) { 124 FitsInFile fis(flnm); 125 fis >> (*sg); 126 return; 127 } 128 string s = typeid(*mMap).name(); 129 cout << " NOMAdapter_PixelMap<T>::ReadFits() - Error " 130 << " Not supported for " << s << endl; 131 return; 132 } 133 134 135 /* --Methode-- */ 136 template <class T> 137 void NOMAdapter_PixelMap<T>::SaveFits(string const & flnm) 138 { 139 LocalMap<T>* lm = dynamic_cast< LocalMap<T> * >(mMap); 140 if (lm != NULL) { 141 FitsOutFile fos(flnm); 142 fos << (*lm); 143 return; 144 } 145 SphereHEALPix<T>* sg = dynamic_cast< SphereHEALPix<T> * >(mMap); 146 if (sg != NULL) { 147 FitsOutFile fos(flnm); 148 fos << (*sg); 149 return; 150 } 151 string s = typeid(*mMap).name(); 152 cout << " NOMAdapter_PixelMap<T>::SaveFits() - Error " 153 << " Not supported for " << s << endl; 154 return; 155 } 156 157 // ---- Specialisation pour complexes ----- 158 void NOMAdapter_PixelMap< complex<r_4> >::ReadFits(string const & flnm) 159 { 160 cout << " void NOMAdapter_PixelMap< complex<r_4> >::ReadFits() - Error " 161 << " Not supported (complex data type)" << endl; 162 } 163 void NOMAdapter_PixelMap< complex<r_4> >::SaveFits(string const & flnm) 164 { 165 cout << " void NOMAdapter_PixelMap< complex<r_4> >::SaveFits() - Error " 166 << " Not supported (complex data type)" << endl; 167 } 168 void NOMAdapter_PixelMap< complex<r_8> >::ReadFits(string const & flnm) 169 { 170 cout << " void NOMAdapter_PixelMap< complex<r_4> >::ReadFits() - Error " 171 << " Not supported (complex data type)" << endl; 172 } 173 void NOMAdapter_PixelMap< complex<r_8> >::SaveFits(string const & flnm) 174 { 175 cout << " void NOMAdapter_PixelMap< complex<r_8> >::SaveFits() - Error " 176 << " Not supported (complex data type)" << endl; 177 } 178 107 179 108 180 /* --Methode-- */
Note:
See TracChangeset
for help on using the changeset viewer.