Changeset 2020
- Timestamp:
- 03/01/11 18:43:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSWriter.cpp
r2019 r2020 164 164 RecordFieldPtr<Int> ddidRF( trec, "DATA_DESC_ID" ) ; 165 165 RecordFieldPtr<Int> stateidRF( trec, "STATE_ID" ) ; 166 166 RecordFieldPtr< Array<Bool> > flagcatRF( trec, "FLAG_CATEGORY" ) ; 167 167 168 168 // OBSERVATION_ID is always 0 … … 455 455 456 456 // FLAG_CATEGORY is tentatively set 457 RecordFieldPtr< Array<Bool> > flagcatRF( trec, "FLAG_CATEGORY" ) ;458 457 //*flagcatRF = Cube<Bool>( nrow, nchan, 1, False ) ; 459 458 flagcatRF.define( Cube<Bool>( nrow, nchan, 1, False ) ) ; … … 1226 1225 msFeed.addRow( 1, True ) ; 1227 1226 Int nrow = msFeed.nrow() ; 1227 Int numReceptors = 2 ; 1228 Vector<String> polType( numReceptors ) ; 1229 Matrix<Double> beamOffset( 2, numReceptors ) ; 1230 beamOffset = 0.0 ; 1231 Vector<Double> receptorAngle( numReceptors, 0.0 ) ; 1232 if ( polType_ == "linear" ) { 1233 polType[0] = "X" ; 1234 polType[1] = "Y" ; 1235 } 1236 else if ( polType_ == "circular" ) { 1237 polType[0] = "R" ; 1238 polType[1] = "L" ; 1239 } 1240 else { 1241 polType[0] = "X" ; 1242 polType[1] = "Y" ; 1243 } 1244 Matrix<Complex> polResponse( numReceptors, numReceptors, 0.0 ) ; 1245 for ( Int i = 0 ; i < numReceptors ; i++ ) 1246 polResponse( i, i ) = 0.0 ; 1228 1247 1229 1248 MSFeedColumns msFeedCols( mstable_->feed() ) ; … … 1231 1250 msFeedCols.feedId().put( nrow-1, id ) ; 1232 1251 msFeedCols.antennaId().put( nrow-1, 0 ) ; 1252 msFeedCols.numReceptors().put( nrow-1, numReceptors ) ; 1253 msFeedCols.polarizationType().put( nrow-1, polType ) ; 1254 msFeedCols.beamOffset().put( nrow-1, beamOffset ) ; 1255 msFeedCols.receptorAngle().put( nrow-1, receptorAngle ) ; 1256 msFeedCols.polResponse().put( nrow-1, polResponse ) ; 1233 1257 1234 1258 double endSec = gettimeofday_sec() ; … … 1688 1712 // MS: "s" 1689 1713 me = midTime ; 1690 interval = ( maxTime - minTime ) * 86400.0 ;1714 interval = ( maxTime - minTime ) * 86400.0 + mean( ainterval ) ; 1691 1715 1692 1716 double endSec = gettimeofday_sec() ;
Note:
See TracChangeset
for help on using the changeset viewer.