Changeset 1801 in Sophya for trunk/ArchTOIPipe
- Timestamp:
- Nov 30, 2001, 4:02:04 PM (24 years ago)
- Location:
- trunk/ArchTOIPipe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
r1800 r1801 3 3 // Christophe Magneville 4 4 // Reza Ansari 5 // $Id: fitstoirdr.cc,v 1.2 3 2001-11-29 18:19:32aubourg Exp $5 // $Id: fitstoirdr.cc,v 1.24 2001-11-30 15:02:04 aubourg Exp $ 6 6 7 7 #include "fitstoirdr.h" … … 223 223 uint_8 * tmpflg = new uint_8[Buff_Sz]; 224 224 225 TOIManager* mgr = TOIManager::getManager(); 226 225 227 //////// Read data and put into pipe 226 228 long ideb=-1,ifin=-1; … … 234 236 long n = ifin-ideb+1; 235 237 int anyNul; 236 fits_lock();237 238 if (implicitSN) { 239 if (ideb+implicitSNStart > mgr->getRequestedEnd() 240 || ideb+implicitSNStart > forcedMaxIn) break; 241 if (ifin+implicitSNStart < mgr->getRequestedBegin() 242 || ifin+implicitSNStart < forcedMinIn) continue; 238 243 for (long j=0; j<Buff_Sz; j++) { 239 244 samplenum[j] = j+ideb+implicitSNStart; 240 245 } 246 fits_lock(); 241 247 } else { 248 fits_lock(); 242 249 fits_read_col_dbl(fptr,1,ideb+1,1,n,0,samplenum,&anyNul,&fstatus); 250 if (ideb+implicitSNStart > mgr->getRequestedEnd() 251 || ideb+implicitSNStart > forcedMaxIn) { 252 fits_unlock(); 253 break; 254 } 255 if (ifin+implicitSNStart < mgr->getRequestedBegin() 256 || ifin+implicitSNStart < forcedMinIn) { 257 fits_unlock(); 258 continue; 259 } 243 260 } 244 261 for(int k=0; k<getNOut(); k++) { … … 258 275 long ip = i-ideb; // pointeurs dans les buffers 259 276 long sn = (long) (samplenum[ip]+.1); 260 TOIManager* mgr = TOIManager::getManager();261 if(samplenum[0] > mgr->getRequestedEnd()) break;262 if(samplenum[0] > forcedMaxIn) break;263 if(samplenum[ifin-ideb] < mgr->getRequestedBegin()) continue;264 if(samplenum[ifin-ideb] < forcedMinIn) continue;265 277 if (ip == 0) { 266 278 for(int k=0; k<getNOut(); k++) { -
trunk/ArchTOIPipe/TestPipes/quickmap_p.cc
r1800 r1801 1 1 // GPH 424.1 Planck HFI-L2 Simple Map Making 2 2 // Eric Aubourg CEA/DAPNIA/SPP 3 // $Id: quickmap_p.cc,v 1. 1 2001-11-29 18:19:32aubourg Exp $3 // $Id: quickmap_p.cc,v 1.2 2001-11-30 15:02:04 aubourg Exp $ 4 4 5 5 #include <stdlib.h> … … 370 370 cout<<"Creating map fits file "<<prefs.output.fname<<endl; 371 371 // Would need some generic mechanism here $CHECK$ $$TBD$$ 372 if ( smap->TypeOfMap() == "RING") {372 if ((string)smap->TypeOfMap() == "RING") { 373 373 sfits << * (SphereHEALPix<r_8>*)smap; 374 } else if ( smap->TypeOfMap() == "LOCAL") {374 } else if ((string)smap->TypeOfMap() == "LOCAL") { 375 375 sfits << * (LocalMap<r_8>*)smap; 376 376 } else { … … 383 383 cout<<"Creating map weight fits file "<<prefs.output.wfname<<endl; 384 384 // swfits << *wmap; 385 if ( swmap->TypeOfMap() == "RING") {385 if ((string)swmap->TypeOfMap() == "RING") { 386 386 swfits << * (SphereHEALPix<r_8>*)swmap; 387 } else if ( swmap->TypeOfMap() == "LOCAL") {387 } else if ((string)swmap->TypeOfMap() == "LOCAL") { 388 388 swfits << * (LocalMap<r_8>*)swmap; 389 389 } else {
Note:
See TracChangeset
for help on using the changeset viewer.