- Timestamp:
- 01/23/13 19:09:27 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSFiller.cpp
r2745 r2746 581 581 tcalids = getTcalId( syscalTime[scIdx] ) ; 582 582 } 583 //else {584 //tcalids = getDummyTcalId( spwId ) ;585 //}583 else { 584 tcalids = getDummyTcalId( spwId ) ; 585 } 586 586 587 587 // put value … … 1265 1265 idList[j] = tmp[0]; 1266 1266 } 1267 cout << "tmp=" << tmp << endl;1268 1267 } 1269 1268 return idList; -
trunk/src/MSWriter.cpp
r2743 r2746 1686 1686 public: 1687 1687 BaseTcalProcessor( ROArrayColumn<Float> &tcalCol ) 1688 : col ( tcalCol )1688 : col_( tcalCol ) 1689 1689 {} 1690 1690 virtual ~BaseTcalProcessor() {} 1691 void setTcalId( Vector<uInt> &tcalId ) { id .assign( tcalId ) ; }1691 void setTcalId( Vector<uInt> &tcalId ) { id_.assign( tcalId ) ; } 1692 1692 virtual Array<Float> getTcal() = 0 ; 1693 1693 protected: 1694 ROArrayColumn<Float> col ;1695 Vector<uInt> id ;1694 ROArrayColumn<Float> col_ ; 1695 Vector<uInt> id_ ; 1696 1696 }; 1697 1697 … … 1705 1705 virtual Array<Float> getTcal() 1706 1706 { 1707 uInt npol = id .nelements() ;1707 uInt npol = id_.nelements() ; 1708 1708 Vector<Float> tcal( npol ) ; 1709 1709 for ( uInt ipol = 0 ; ipol < npol ; ipol++ ) 1710 tcal[ipol] = col ( id[ipol] ).data()[0] ;1710 tcal[ipol] = col_( id_[ipol] ).data()[0] ; 1711 1711 //cout << "TcalProcessor: tcal = " << tcal << endl ; 1712 1712 return tcal ; … … 1723 1723 virtual Array<Float> getTcal() 1724 1724 { 1725 uInt npol = id.nelements() ; 1726 Vector<Float> tcal0 = col( 0 ) ; 1725 uInt npol = id_.nelements() ; 1726 //Vector<Float> tcal0 = col_( 0 ) ; 1727 Vector<Float> tcal0 = col_( id_[0] ) ; 1727 1728 uInt nchan = tcal0.nelements() ; 1728 1729 Matrix<Float> tcal( npol, nchan ) ; 1729 1730 tcal.row( 0 ) = tcal0 ; 1730 1731 for ( uInt ipol = 1 ; ipol < npol ; ipol++ ) 1731 tcal.row( ipol ) = col ( id[ipol] ) ;1732 tcal.row( ipol ) = col_( id_[ipol] ) ; 1732 1733 return tcal ; 1733 1734 }
Note:
See TracChangeset
for help on using the changeset viewer.