- Timestamp:
- 02/17/12 19:54:37 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2413 r2414 1675 1675 void STGrid::fillMainColumns( Table &tab ) 1676 1676 { 1677 // values for fill 1677 1678 Table t( infileList_[0], Table::Old ) ; 1678 1679 Table tsel = t( t.col( "IFNO" ) == (uInt)ifno_, 1 ) ; 1679 ROTableRow row( t ab) ;1680 ROTableRow row( tsel ) ; 1680 1681 row.get( 0 ) ; 1681 1682 const TableRecord &rec = row.record() ; 1682 1683 uInt freqId = rec.asuInt( "FREQ_ID" ) ; 1684 Vector<Float> defaultTsys( 1, 1.0 ) ; 1685 // @todo how to set flagtra for gridded spectra? 1686 Vector<uChar> flagtra = rec.asArrayuChar( "FLAGTRA" ) ; 1687 flagtra = (uChar)0 ; 1688 1689 // fill columns 1683 1690 Int nrow = tab.nrow() ; 1684 1691 ScalarColumn<uInt> ifnoCol( tab, "IFNO" ) ; 1685 1692 ScalarColumn<uInt> freqIdCol( tab, "FREQ_ID" ) ; 1693 ArrayColumn<uChar> flagtraCol( tab, "FLAGTRA" ) ; 1694 ArrayColumn<Float> tsysCol( tab, "TSYS" ) ; 1686 1695 for ( Int i = 0 ; i < nrow ; i++ ) { 1687 1696 ifnoCol.put( i, (uInt)ifno_ ) ; 1688 1697 freqIdCol.put( i, freqId ) ; 1689 } 1690 } 1691 1692 } 1698 flagtraCol.put( i, flagtra ) ; 1699 tsysCol.put( i, defaultTsys ) ; 1700 } 1701 } 1702 1703 }
Note:
See TracChangeset
for help on using the changeset viewer.