Changeset 2027
- Timestamp:
- 03/02/11 18:07:33 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MSFiller.cpp
r2025 r2027 567 567 Int refchan = nchan / 2 ; 568 568 IPosition refip( 1, refchan ) ; 569 Double refpix = 0.5*(nchan-1) ; 569 //Double refpix = 0.5*(nchan-1) ; 570 Double refpix = 0.5*(nchan) ; 570 571 Double refval = 0.0 ; 571 572 sharedQDArrCol = new ROArrayQuantColumn<Double>( spwtab, "CHAN_WIDTH" ) ; -
trunk/src/MSWriter.cpp
r2026 r2027 1252 1252 // NUM_CHAN 1253 1253 Int nchan = (Int)(refpix * 2) ; 1254 if ( nchan == 0 ) 1255 nchan = 1 ; 1254 1256 msSpwCols.numChan().put( spwid, nchan ) ; 1255 1257 … … 1377 1379 uInt nrow = msPol.nrow() ; 1378 1380 1379 // only 1 POLARIZATION row for 1 scantable1380 if ( nrow > 0 )1381 return 0 ;1381 // // only 1 POLARIZATION row for 1 scantable 1382 // if ( nrow > 0 ) 1383 // return 0 ; 1382 1384 1383 1385 Vector<Int> corrType = toCorrType( polnos ) ; 1384 1386 1385 1387 ROArrayColumn<Int> corrtCol( msPol, "CORR_TYPE" ) ; 1386 Matrix<Int> corrTypeArr = corrtCol.getColumn() ;1388 //Matrix<Int> corrTypeArr = corrtCol.getColumn() ; 1387 1389 Int polid = -1 ; 1388 1390 for ( uInt irow = 0 ; irow < nrow ; irow++ ) { 1389 if ( allEQ( corrType, corrTypeArr.column( irow ) ) ) { 1391 Vector<Int> corrTypeArr = corrtCol( irow ) ; 1392 if ( corrType.nelements() == corrTypeArr.nelements() 1393 && allEQ( corrType, corrTypeArr ) ) { 1390 1394 polid = irow ; 1391 1395 break ;
Note:
See TracChangeset
for help on using the changeset viewer.