- Timestamp:
- 12/02/13 13:31:34 (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/external-alma/asdm2ASAP/ASDMFiller.cc
r2754 r2869 325 325 326 326 // fill SCANNO, CYCLENO, IFNO, POLNO, and BEAMNO 327 setIndex( (uInt)scanno-1, (uInt)cycleno[scanno], ifno, ipol, beamno ) ; 327 // CAS-5841: SCANNO should be consistent with ASDM scanNumber 328 setIndex( (uInt)scanno, (uInt)cycleno[scanno], ifno, ipol, beamno ) ; 328 329 329 330 // fill SPECTRA, FLAGTRA, TSYS -
trunk/src/MSFiller.cpp
r2844 r2869 1 2 1 // 3 2 // C++ Interface: MSFiller … … 495 494 //printf("%u: ScanNo: %d\n", recordNo, columnValue); 496 495 // put value 497 // scan number is 1-based in MS while 0-based in Scantable498 *scanNoRF = (uInt)columnValue - 1;496 // CAS-5841: SCANNO should be consistent with MS SCAN_NUMBER 497 *scanNoRF = (uInt)columnValue ; 499 498 } 500 499 virtual void leaveScanNo(const uInt /*recordNo*/, Int /*columnValue*/) { -
trunk/src/MSWriter.cpp
r2863 r2869 756 756 //printf("%u: ScanNo: %u\n", recordNo, columnValue); 757 757 758 // put value 759 // SCAN_NUMBER is 0-based in Scantable while 1-based in MS760 *scanNumberRF = (Int)columnValue + 1;758 // put value 759 // CAS-5841: SCANNO should be consistent with MS SCAN_NUMBER 760 *scanNumberRF = (Int)columnValue ; 761 761 } 762 762 virtual void leaveScanNo(const uInt /*recordNo*/, uInt /*columnValue*/) { -
trunk/src/Scantable.cpp
r2846 r2869 1729 1729 int nscan = scanlist.size(); 1730 1730 for (int i = 0; i < nscan; i++) { 1731 Table subt = t( t.col("SCAN") == scanlist[i] +1);1731 Table subt = t( t.col("SCAN") == scanlist[i] ); 1732 1732 if (subt.nrow()==0) { 1733 1733 //cerr <<"Scan "<<scanlist[i]<<" cannot be found in the scantable."<<endl; … … 1743 1743 if ( rec.asuInt("PROCSIZE")==2 ) { 1744 1744 if ( i < nscan-1 ) { 1745 Table subt2 = t( t.col("SCAN") == scanlist[i+1]+1);1745 Table subt2 = t( t.col("SCAN") == scanlist[i+1] ); 1746 1746 if ( subt2.nrow() == 0) { 1747 1747 LogIO os( LogOrigin( "Scantable", "checkScanInfo()", WHERE ) ) ;
Note:
See TracChangeset
for help on using the changeset viewer.