Ignore:
Timestamp:
04/03/14 13:45:09 (10 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Replaced STIdxIter classes with STIdxIter2 as much as possible.
Also disabled python interface for STIdxIter since the iterator has
a problem.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STCalibration.cpp

    r2915 r2916  
    4444  cols[1] = "POLNO";
    4545  cols[2] = "BEAMNO";
    46   STIdxIterAcc iter(scantable_, cols);
     46  STIdxIter2 iter(scantable_, cols);
    4747
    4848  ROScalarColumn<Double> *tcol = new ROScalarColumn<Double>(scantable_->table(), "TIME");
     
    6969  while(!iter.pastEnd()) {
    7070    Vector<uInt> rows = iter.getRows(SHARE);
    71     Vector<uInt> current = iter.current();
     71    Record current = iter.currentValue();
    7272    //os_ << "current=" << current << LogIO::POST;
    7373    uInt len = rows.nelements();
     
    7878    else if (len == 1) {
    7979      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"),
    8181                 freqidCol(irow), timeSec[irow], elevation[irow], specCol(irow));
    8282      iter.next();
     
    126126          timeCen /= (Double)count * 86400.0; // sec->day
    127127          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"),
    129129                     freqidCol(irow), timeCen, elCen, acc.getSpectrum());
    130130        }
Note: See TracChangeset for help on using the changeset viewer.