Changeset 2027


Ignore:
Timestamp:
03/02/11 18:07:33 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2718

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Fixed bugs in POLARIZATION and SPECTRAL_WINDOW subtables.


Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2025 r2027  
    567567          Int refchan = nchan / 2 ;
    568568          IPosition refip( 1, refchan ) ;
    569           Double refpix = 0.5*(nchan-1) ;
     569          //Double refpix = 0.5*(nchan-1) ;
     570          Double refpix = 0.5*(nchan) ;
    570571          Double refval = 0.0 ;
    571572          sharedQDArrCol = new ROArrayQuantColumn<Double>( spwtab, "CHAN_WIDTH" ) ;
  • trunk/src/MSWriter.cpp

    r2026 r2027  
    12521252  // NUM_CHAN
    12531253  Int nchan = (Int)(refpix * 2) ;
     1254  if ( nchan == 0 )
     1255    nchan = 1 ;
    12541256  msSpwCols.numChan().put( spwid, nchan ) ;
    12551257
     
    13771379  uInt nrow = msPol.nrow() ;
    13781380
    1379   // only 1 POLARIZATION row for 1 scantable
    1380   if ( nrow > 0 )
    1381     return 0 ;
     1381//   // only 1 POLARIZATION row for 1 scantable
     1382//   if ( nrow > 0 )
     1383//     return 0 ;
    13821384 
    13831385  Vector<Int> corrType = toCorrType( polnos ) ;
    13841386 
    13851387  ROArrayColumn<Int> corrtCol( msPol, "CORR_TYPE" ) ;
    1386   Matrix<Int> corrTypeArr = corrtCol.getColumn() ;
     1388  //Matrix<Int> corrTypeArr = corrtCol.getColumn() ;
    13871389  Int polid = -1 ;
    13881390  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 ) ) {
    13901394      polid = irow ;
    13911395      break ;
Note: See TracChangeset for help on using the changeset viewer.