Changeset 2911 for trunk/src/STMath.cpp
- Timestamp:
- 04/01/14 13:05:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STMath.cpp
r2905 r2911 3621 3621 cols[1] = "POLNO" ; 3622 3622 cols[2] = "IFNO" ; 3623 STIdxIter *iter = new STIdxIterAcc( out, cols ) ;3623 STIdxIter2 iter( out, cols ) ; 3624 3624 STSelector sel ; 3625 while ( !iter ->pastEnd() ) {3626 Vector<uInt> ids = iter->current() ;3625 while ( !iter.pastEnd() ) { 3626 Record ids = iter.currentValue() ; 3627 3627 stringstream ss ; 3628 3628 ss << "SELECT FROM $1 WHERE " 3629 << "BEAMNO==" << ids [0]<< "&&"3630 << "POLNO==" << ids [1]<< "&&"3631 << "IFNO==" << ids [2];3629 << "BEAMNO==" << ids.asuInt(cols[0]) << "&&" 3630 << "POLNO==" << ids.asuInt(cols[1]) << "&&" 3631 << "IFNO==" << ids.asuInt(cols[2]) ; 3632 3632 //cout << "TaQL string: " << ss.str() << endl ; 3633 3633 sel.setTaQL( ss.str() ) ; 3634 3634 aoff->setSelection( sel ) ; 3635 Vector<uInt> rows = iter ->getRows( SHARE ) ;3635 Vector<uInt> rows = iter.getRows( SHARE ) ; 3636 3636 // out should be an exact copy of s except that SPECTRA column is empty 3637 3637 calibrateALMA( out, s, aoff, rows ) ; 3638 3638 aoff->unsetSelection() ; 3639 3639 sel.reset() ; 3640 iter->next() ; 3641 } 3642 delete iter ; 3640 iter.next() ; 3641 } 3643 3642 s->table_ = torg ; 3644 3643 s->attach() ;
Note:
See TracChangeset
for help on using the changeset viewer.