Changeset 432 in Sophya for trunk/Poubelle/archTOI.old/toiiter.cc
- Timestamp:
- Sep 24, 1999, 4:06:09 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toiiter.cc
r426 r432 36 36 tStart = -9.e99; 37 37 tEnd = 9.e99; 38 utcStart = -9.e99; 39 utcEnd = 9.e99; 40 41 sStart = -999999999; 42 sEnd = 999999999; 38 43 39 44 //tBlock0 = -1; … … 61 66 if (x.initDone && x.curFile != x.files.end()) curFile = files.find(*(x.curFile)); 62 67 isOnBoardRecorder = x.isOnBoardRecorder; 63 imes = x.imes; 64 tStart = x.tStart; 65 tEnd = x.tEnd; 68 imes = x.imes; 69 70 tStart = x.tStart; 71 tEnd = x.tEnd; 72 utcStart = x.utcStart; 73 utcEnd = x.utcEnd; 74 sStart = x.sStart; 75 sEnd = x.sEnd; 76 66 77 trigMask = x.trigMask; 67 78 infos = x.infos; … … 108 119 if (initDone) return; 109 120 initDone = true; 121 if (utcStart > 0) { 122 double t = (utcStart/24.) + archParam.acq.utcOrigin; 123 if (t > tStart) tStart=t; 124 } 125 if (utcEnd > 0) { 126 double t = (utcEnd/24.) + archParam.acq.utcOrigin; 127 if (t < tEnd) tEnd=t; 128 } 110 129 // On a soit un repertoire, soit une liste de fichiers.... 111 130 if (directory == "") { … … 215 234 if ((*i).triggering) { 216 235 switch ((*i).kind) { 217 case boloTens: 218 case boloTens2: 219 case boloRaw: 220 case boloRawCN: 221 case boloTensCN: 236 case boloMuV: 237 case boloMuV2: 238 case boloRawMuV: 239 case boloRawMuVCN: 222 240 trigMask |= block_bolo_mask; 223 241 break; 224 case bolo Tens2T:242 case boloMuV2T: 225 243 case boloRes: 226 244 case boloTemp: 227 245 trigMask |= block_bolo_mask | block_reglage_mask; 228 246 break; 229 case dilDAC:247 case dilDAC: 230 248 case dilSwitch: 231 249 trigMask |= block_dilution_mask; … … 241 259 trigMask |= block_gps_mask; 242 260 break; 243 case azimut Bolo:261 case azimuthBolo: 244 262 trigMask |= block_bolo_mask; 245 263 //file->needSSTProcessMask(SSTHandler::findPeriod); … … 263 281 break; 264 282 case gyroRaw: 265 case gyro Tens:283 case gyroV: 266 284 trigMask |= block_gyro_mask; 267 285 break; … … 269 287 trigMask |= block_gyro_mask; // $CHECK$ + info to calibrate gyros 270 288 break; 271 case alpha Axis:272 case delta Axis:289 case alphaRotAxis: 290 case deltaRotAxis: 273 291 case alphaSst: 274 292 case deltaSst: 293 case alphaFPAxis: 294 case deltaFPAxis: 275 295 case alphaBolo: 276 296 case deltaBolo: … … 278 298 //file->needSSTProcessMask(SSTHandler::findAxis); 279 299 //trigMask |= block_sst_mask; 300 break; 301 case alphaZenith: 302 case deltaZenith: 303 trigMask |= block_gps_mask; 280 304 break; 281 305 } … … 323 347 double smp = file1stSamp[*i]; 324 348 double t = archParam.acq.tBlock0 + smp * archParam.acq.perEch/86400.; 325 if (t>tEnd ) { // premier echantillon apres tEnd349 if (t>tEnd || smp>sEnd) { // premier echantillon apres tEnd 326 350 files.erase(*i); 327 351 prev = ""; 328 352 continue; 329 353 } 330 if (t<tStart ) { // premier echantillon avant tStart -> on vire le precedent si existe354 if (t<tStart || smp<sStart) { // premier echantillon avant tStart -> on vire le precedent si existe 331 355 if (prev != "") { 332 356 files.erase(prev); … … 436 460 TOIKind kind = infos[column].kind; 437 461 if (auxGPS && 438 (kind == longitude || kind == latitude || kind == altitude || kind == tsid)) { 462 (kind == longitude || kind == latitude || kind == altitude || kind == tsid || 463 kind == alphaZenith || kind == deltaZenith)) { 439 464 double dummy; 440 465 return auxGPS->getLocation(getMJD(), dummy, dummy, dummy) == 0; … … 448 473 case internalTime: 449 474 case mjd: 475 case mutc: 450 476 return true; 451 case bolo Tens:452 case bolo Tens2:453 case bolo Tens2T:477 case boloMuV: 478 case boloMuV2: 479 case boloMuV2T: 454 480 case boloRes: 455 case boloRaw CN:481 case boloRawMuVCN: 456 482 if (imes==0 && file->llastBolo()==NULL) return false; 457 483 return file->lastBolo() != NULL; 458 case boloTensCN: 459 case boloRaw: 484 case boloRawMuV: 460 485 return file->lastBolo() != NULL; 461 486 case boloGainAmpli: … … 480 505 } 481 506 case gyroRaw: 482 case gyro Tens:507 case gyroV: 483 508 case gyroSpeed: 484 509 return (file->lastGyro() != NULL); … … 487 512 case longitude: 488 513 case latitude: 514 case alphaZenith: 515 case deltaZenith: 489 516 return file->hasGPSPos(); 490 517 case altitude: … … 492 519 case tsid: 493 520 return file->hasGPSPos(); 494 case azimutBolo: 495 case alphaAxis: 496 case deltaAxis: 521 case azimuthBolo: 522 case alphaRotAxis: 523 case deltaRotAxis: 524 case alphaFPAxis: 525 case deltaFPAxis: 497 526 case alphaBolo: 498 527 case deltaBolo: … … 525 554 return tSid.getLST(getMJD()); 526 555 } 556 527 557 } 528 558 if (rawIter) { … … 540 570 case mjd: 541 571 return getMJD(); 542 case boloTens: 572 case mutc: 573 return (getMJD()-archParam.acq.utcOrigin)*24.; 574 case boloMuV: 543 575 return file->getMuVBolo(index, imes); 544 case bolo Tens2:576 case boloMuV2: 545 577 return file->getMuVBolo2(index, imes); 546 case boloRaw :578 case boloRawMuV: 547 579 return file->getRawBolo(index, imes); 548 case boloRawCN: 549 return file->getRawBoloCN(index, imes); 550 case boloTensCN: 580 case boloRawMuVCN: 551 581 return file->getMuVBoloCN(index, imes); 552 582 case boloGainAmpli: … … 556 586 case boloDACI: 557 587 return file->getDACI(index); 558 case bolo Tens2T:588 case boloMuV2T: 559 589 return file->getMuVBolo2T(index, imes); 560 590 case boloRes: … … 582 612 case gyroRaw: 583 613 return file->getGyroRaw(index, imes); 584 case gyro Tens:614 case gyroV: 585 615 return file->getGyroTens(index, imes); 586 616 case gyroSpeed: … … 597 627 tSid.setLongitude(file->getGPSLong()); 598 628 return tSid.getLST(getMJD()); 599 case azimutBolo: 600 case alphaAxis: 601 case deltaAxis: 629 case azimuthBolo: 630 case alphaRotAxis: 631 case deltaRotAxis: 632 case alphaFPAxis: 633 case deltaFPAxis: 634 case alphaZenith: 635 case deltaZenith: 602 636 case alphaBolo: 603 637 case deltaBolo: { … … 614 648 tempLocator.setEarthPos(lon, lat); 615 649 tempLocator.setTSid(ts); 616 if ((kind) == alphaAxis) return tempLocator.getAlphaZenith(); 617 if ((kind) == deltaAxis) return tempLocator.getDeltaZenith(); 618 if ((kind) == azimutBolo) return tempLocator.getAzimutBolo(getSampleIndex(),index); 650 if ((kind) == alphaRotAxis) return tempLocator.getAlphaZenith(); 651 if ((kind) == deltaRotAxis) return tempLocator.getDeltaZenith(); 652 if ((kind) == alphaZenith) return tempLocator.getAlphaZenith(); 653 if ((kind) == deltaZenith) return tempLocator.getDeltaZenith(); 654 if ((kind) == azimuthBolo) return tempLocator.getAzimutBolo(getSampleIndex(),index); 619 655 if ((kind) == alphaBolo) return tempLocator.getAlphaBolo(getSampleIndex(),index); 620 656 if ((kind) == deltaBolo) return tempLocator.getDeltaBolo(getSampleIndex(),index); 657 if ((kind) == alphaFPAxis) return tempLocator.getAlphaCenter(getSampleIndex()); 658 if ((kind) == deltaFPAxis) return tempLocator.getDeltaCenter(getSampleIndex()); 621 659 return 0; 622 660 } … … 640 678 case internalTime: 641 679 case mjd: 680 case mutc: 642 681 case tsid: 643 682 return true; 644 case bolo Tens:645 case bolo Tens2:646 case bolo Tens2T:683 case boloMuV: 684 case boloMuV2: 685 case boloMuV2T: 647 686 case boloRes: 648 687 return file->blockNum() == file->getBoloBlockNum(); 649 case boloRaw: 650 case boloRawCN: 651 case boloTensCN: 688 case boloRawMuV: 689 case boloRawMuVCN: 652 690 return file->blockNum() == file->getBoloBlockNum(); 653 691 case boloGainAmpli: … … 670 708 return file->blockNum() == file->getSSTCompBlockNum(); 671 709 case gyroRaw: 672 case gyro Tens:710 case gyroV: 673 711 case gyroSpeed: 674 712 return file->blockNum() == file->getGyroBlockNum(); … … 681 719 case altitude: 682 720 return file->blockNum() == file->getGPSBlockNum() && imes==0; 683 case azimut Bolo:721 case azimuthBolo: 684 722 case alphaBolo: 685 723 case deltaBolo: 724 case alphaZenith: 725 case deltaZenith: 726 case alphaFPAxis: 727 case deltaFPAxis: 686 728 return true; // $CHECK$ with SSTHandler 687 case alpha Axis:729 case alphaRotAxis: 688 730 return true; // $CHECK$ with SSTHandler 689 case delta Axis:731 case deltaRotAxis: 690 732 return true; // $CHECK$ with SSTHandler 691 733 }
Note:
See TracChangeset
for help on using the changeset viewer.