- Timestamp:
- 02/17/12 19:41:49 (13 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2405 r2413 20 20 #include <tables/Tables/Table.h> 21 21 #include <tables/Tables/TableRecord.h> 22 #include <tables/Tables/TableRow.h> 22 23 #include <tables/Tables/ExprNode.h> 23 24 #include <tables/Tables/ScalarColumn.h> … … 1656 1657 os << "saveData: elapsed time is " << t1-t0 << " sec." << LogIO::POST ; 1657 1658 1659 fillMainColumns( tab ) ; 1660 1658 1661 return outfile_ ; 1659 1662 } … … 1670 1673 } 1671 1674 1672 } 1675 void STGrid::fillMainColumns( Table &tab ) 1676 { 1677 Table t( infileList_[0], Table::Old ) ; 1678 Table tsel = t( t.col( "IFNO" ) == (uInt)ifno_, 1 ) ; 1679 ROTableRow row( tab ) ; 1680 row.get( 0 ) ; 1681 const TableRecord &rec = row.record() ; 1682 uInt freqId = rec.asuInt( "FREQ_ID" ) ; 1683 Int nrow = tab.nrow() ; 1684 ScalarColumn<uInt> ifnoCol( tab, "IFNO" ) ; 1685 ScalarColumn<uInt> freqIdCol( tab, "FREQ_ID" ) ; 1686 for ( Int i = 0 ; i < nrow ; i++ ) { 1687 ifnoCol.put( i, (uInt)ifno_ ) ; 1688 freqIdCol.put( i, freqId ) ; 1689 } 1690 } 1691 1692 } -
trunk/src/STGrid.h
r2398 r2413 195 195 void initTable( uInt idx ) ; 196 196 Bool isMultiIF( Table &tab ) ; 197 void fillMainColumns( Table &tab ) ; 197 198 static bool produceChunk(void *ctx) throw(concurrent::PCException); 198 199 static void consumeChunk(void *ctx) throw(concurrent::PCException);
Note:
See TracChangeset
for help on using the changeset viewer.