Changeset 2916 for trunk/src/EdgeMarker.cpp
- Timestamp:
- 04/03/14 13:45:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/EdgeMarker.cpp
r2757 r2916 77 77 ROArrayColumn<uChar> flagCol( st_->table(), "FLAGTRA" ) ; 78 78 vector<string> cols( 1, "IFNO" ) ; 79 STIdxIter Acciter( st_, cols ) ;79 STIdxIter2 iter( st_, cols ) ; 80 80 while( !iter.pastEnd() ) { 81 uInt current = iter.current ()[0];81 uInt current = iter.currentValue().asuInt("IFNO") ; 82 82 uInt firstRow = iter.getRows()[0] ; 83 83 uInt nchan = flagCol( firstRow ).nelements() ; … … 110 110 cols[2] = "IFNO" ; 111 111 cols[3] = "SRCTYPE" ; 112 STIdxIter ExAcciter( st_, cols ) ;112 STIdxIter2 iter( st_, cols ) ; 113 113 ROScalarColumn<Double> timeCol( st_->table(), "TIME" ) ; 114 114 ROArrayColumn<Double> directionCol( st_->table(), "DIRECTION" ) ; 115 115 while( !iter.pastEnd() ) { 116 Vector<uInt> current = iter.current() ; 117 Int srcType = iter.getSrcType() ; 116 Record current = iter.currentValue() ; 117 Int srcType = current.asInt("SRCTYPE"); 118 uInt ifno = current.asuInt("IFNO"); 118 119 os_ << LogIO::DEBUGGING 119 << "BEAMNO=" << current [0]120 << " POLNO=" << current [1]121 << " IFNO=" << current[2]120 << "BEAMNO=" << current.asuInt("BEAMNO") 121 << " POLNO=" << current.asuInt("POLNO") 122 << " IFNO=" << ifno 122 123 << " SRCTYPE=" << srcType << LogIO::POST ; 123 124 // only process ON position and no WVR 124 125 Vector<uInt> rows = iter.getRows( SHARE ) ; 125 126 uInt nrow = rows.nelements() ; 126 if ( srcType == Int(SrcType::PSON) && allNE( wvr_, current[2]) && nrow > 0 ) {127 if ( srcType == Int(SrcType::PSON) && allNE( wvr_, ifno ) && nrow > 0 ) { 127 128 Vector<Double> t( nrow ) ; 128 129 Matrix<Double> d( 2, nrow ) ;
Note: See TracChangeset
for help on using the changeset viewer.