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/EdgeMarker.cpp

    r2757 r2916  
    7777    ROArrayColumn<uChar> flagCol( st_->table(), "FLAGTRA" ) ;
    7878    vector<string> cols( 1, "IFNO" ) ;
    79     STIdxIterAcc iter( st_, cols ) ;
     79    STIdxIter2 iter( st_, cols ) ;
    8080    while( !iter.pastEnd() ) {
    81       uInt current = iter.current()[0] ;
     81      uInt current = iter.currentValue().asuInt("IFNO") ;
    8282      uInt firstRow = iter.getRows()[0] ;
    8383      uInt nchan = flagCol( firstRow ).nelements() ;
     
    110110  cols[2] = "IFNO" ;
    111111  cols[3] = "SRCTYPE" ;
    112   STIdxIterExAcc iter( st_, cols ) ;
     112  STIdxIter2 iter( st_, cols ) ;
    113113  ROScalarColumn<Double> timeCol( st_->table(), "TIME" ) ;
    114114  ROArrayColumn<Double> directionCol( st_->table(), "DIRECTION" ) ;
    115115  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");
    118119    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
    122123        << " SRCTYPE=" << srcType << LogIO::POST ;
    123124    // only process ON position and no WVR
    124125    Vector<uInt> rows = iter.getRows( SHARE ) ;
    125126    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 ) {
    127128      Vector<Double> t( nrow ) ;
    128129      Matrix<Double> d( 2, nrow ) ;
Note: See TracChangeset for help on using the changeset viewer.