Changeset 2478
- Timestamp:
- 04/24/12 11:10:09 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STGrid.cpp
r2461 r2478 1650 1650 ArrayColumn<Float> spectraCol( tab, "SPECTRA" ) ; 1651 1651 ScalarColumn<uInt> polnoCol( tab, "POLNO" ) ; 1652 ScalarColumn<uInt> scannoCol( tab, "SCANNO" ) ; 1652 1653 Int irow = 0 ; 1653 1654 Vector<Float> sp( nchan_ ) ; … … 1658 1659 long step = nx_ * ny_ * npol_ ; 1659 1660 long offset ; 1661 uInt scanno = 0 ; 1660 1662 for ( Int iy = 0 ; iy < ny_ ; iy++ ) { 1661 1663 dir(1) = center_(1) - ( cpix(1) - (Double)iy ) * celly_ ; … … 1677 1679 directionCol.put( irow, dir ) ; 1678 1680 polnoCol.put( irow, pollist_[ipol] ) ; 1681 scannoCol.put( irow, scanno ) ; 1679 1682 irow++ ; 1680 1683 } 1684 scanno++ ; 1681 1685 } 1682 1686 } … … 1731 1735 // fill columns 1732 1736 Int nrow = tab.nrow() ; 1733 ScalarColumn<uInt> scannoCol( tab, "SCANNO" ) ;1734 1737 ScalarColumn<uInt> ifnoCol( tab, "IFNO" ) ; 1735 1738 ScalarColumn<uInt> freqIdCol( tab, "FREQ_ID" ) ; … … 1753 1756 ScalarColumn<Double> intervalCol( tab, "INTERVAL" ) ; 1754 1757 for ( Int i = 0 ; i < nrow ; i++ ) { 1755 scannoCol.put( i, (uInt)i ) ;1756 1758 ifnoCol.put( i, (uInt)ifno_ ) ; 1757 1759 freqIdCol.put( i, freqId ) ;
Note:
See TracChangeset
for help on using the changeset viewer.