Changeset 2916 for trunk/src/STCalibration.cpp
- Timestamp:
- 04/03/14 13:45:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STCalibration.cpp
r2915 r2916 44 44 cols[1] = "POLNO"; 45 45 cols[2] = "BEAMNO"; 46 STIdxIter Acciter(scantable_, cols);46 STIdxIter2 iter(scantable_, cols); 47 47 48 48 ROScalarColumn<Double> *tcol = new ROScalarColumn<Double>(scantable_->table(), "TIME"); … … 69 69 while(!iter.pastEnd()) { 70 70 Vector<uInt> rows = iter.getRows(SHARE); 71 Vector<uInt> current = iter.current();71 Record current = iter.currentValue(); 72 72 //os_ << "current=" << current << LogIO::POST; 73 73 uInt len = rows.nelements(); … … 78 78 else if (len == 1) { 79 79 uInt irow = rows[0]; 80 appenddata(0, 0, current [2], current[0], current[1],80 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"), 81 81 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow)); 82 82 iter.next(); … … 126 126 timeCen /= (Double)count * 86400.0; // sec->day 127 127 elCen /= (Float)count; 128 appenddata(0, 0, current [2], current[0], current[1],128 appenddata(0, 0, current.asuInt("BEAMNO"), current.asuInt("IFNO"), current.asuInt("POLNO"), 129 129 freqidCol(irow), timeCen, elCen, acc.getSpectrum()); 130 130 }
Note: See TracChangeset
for help on using the changeset viewer.