Changeset 2376
- Timestamp:
- 12/19/11 20:28:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2375 r2376 457 457 node = node && taborg.col("SCANNO").in( scanlist_ ) ; 458 458 } 459 tab = taborg( node ) ; 459 Block<String> cols( 3 ) ; 460 cols[0] = "TIME" ; 461 cols[1] = "BEAMNO" ; 462 cols[2] = "POLNO" ; 463 Block<Int> order( 3, Sort::Ascending ) ; 464 tab = taborg( node ).sort( cols, order ) ; 460 465 if ( tab.nrow() == 0 ) { 461 466 LogIO os( LogOrigin("STGrid","selectData",WHERE) ) ; 462 467 os << LogIO::SEVERE 463 << "No corresponding rows for given selection: IFNO " << ifno 464 << " SCANNO " << scanlist_ 465 << LogIO::EXCEPTION ; 468 << "No corresponding rows for given selection: IFNO " << ifno ; 469 if ( scanlist_.size() > 0 ) 470 os << " SCANNO " << scanlist_ ; 471 os << LogIO::EXCEPTION ; 466 472 } 467 473 } … … 583 589 void STGrid::setupArray( Table &tab ) 584 590 { 591 LogIO os( LogOrigin("STGrid","setupArray",WHERE) ) ; 585 592 ROScalarColumn<uInt> polnoCol( tab, "POLNO" ) ; 586 593 Vector<uInt> pols = polnoCol.getColumn() ; 594 //os << pols << LogIO::POST ; 587 595 Vector<uInt> pollistOrg ; 588 596 uInt npolOrg = 0 ; … … 613 621 npol_ = pollist_.size() ; 614 622 if ( npol_ == 0 ) { 615 LogIO os( LogOrigin("STGrid","setupArray",WHERE) ) ;616 623 os << LogIO::SEVERE << "Empty pollist" << LogIO::EXCEPTION ; 617 624 } … … 619 626 ROArrayColumn<uChar> tmpCol( tab, "FLAGTRA" ) ; 620 627 nchan_ = tmpCol( 0 ).nelements() ; 621 // LogIO os( LogOrigin("STGrid","setupArray",WHERE) ) ;622 628 // os << "npol_ = " << npol_ << "(" << pollist_ << ")" << endl 623 629 // << "nchan_ = " << nchan_ << endl
Note:
See TracChangeset
for help on using the changeset viewer.