Changeset 2978 in Sophya for trunk/SophyaLib/SkyMap/fiospherehealpix.cc
- Timestamp:
- Jun 21, 2006, 10:38:26 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/fiospherehealpix.cc
r2869 r2978 81 81 uint_8 itab[3]; 82 82 is.Get(itab, 3); 83 84 // Juin 2006 : NumVer 1->2 avec mise en place de HEALPix NESTED 85 // Si itab[2]==1 --> NESTED 86 bool fgring = true; 87 if (itab[2] == 1) fgring = false; 88 83 89 // Let's Read the SphereCoordSys object -- ATTENTIOn - $CHECK$ 84 90 FIO_SphereCoordSys fio_scs( dobj_->GetCoordSys()); … … 100 106 double Omega; 101 107 is.GetR8(Omega); 102 dobj_->setParameters(nSide,nPix, Omega );108 dobj_->setParameters(nSide,nPix, Omega, fgring); 103 109 104 110 // On lit les DataBlocks; … … 124 130 // On ecrit 3 uint_8 125 131 // 0 : Numero de version, 1 : Size index, 2 reserve a l 132 // Juin 2006 : NumVer 1->2 avec mise en place de HEALPix NESTED 133 // totalement back-compatible , on utilise itab[2] qu'on met a 1 134 // pour NESTED 126 135 uint_8 itab[3]; 127 itab[0] = 1;136 itab[0] = 2; 128 137 itab[1] = dobj_->SizeIndex(); 129 itab[2] = 0;138 itab[2] = (dobj_->IfRING()) ? 0 : 1; 130 139 os.Put(itab, 3); 131 140 // Let's write the SphereCoordSys object … … 164 173 165 174 #ifdef __CXX_PRAGMA_TEMPLATES__ 175 #pragma define_template FIO_SphereHEALPix<uint_2> 166 176 #pragma define_template FIO_SphereHEALPix<int_4> 167 177 #pragma define_template FIO_SphereHEALPix<r_8> … … 172 182 #if defined(ANSI_TEMPLATES) || defined(GNU_TEMPLATES) 173 183 namespace SOPHYA { 184 template class FIO_SphereHEALPix<uint_2>; 174 185 template class FIO_SphereHEALPix<int_4>; 175 186 template class FIO_SphereHEALPix<r_8>;
Note:
See TracChangeset
for help on using the changeset viewer.