Changeset 2102 for trunk/src


Ignore:
Timestamp:
04/05/11 15:19:41 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

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...

Bug fix on calibration script and polarization type resolution.


Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2083 r2102  
    444444//           os_ << "npol = " << npol << LogIO::POST ;
    445445//           os_ << "corrtype = " << corrtype << LogIO::POST ;
    446           sdh.npol = max( sdh.npol, npol ) ;
    447           if ( sdh.poltype == "" ) sdh.poltype = getPolType( corrtype[0] ) ;
    448446          // source information
    449447//           os_ << "srcId = " << srcId << ", spwId = " << spwId << LogIO::POST ;
     
    561559          tcolr = tpoolr->construct( spwtab, "NUM_CHAN" ) ;
    562560          Int nchan = tcolr->asInt( spwId ) ;
     561          Bool iswvr = False ;
     562          if ( nchan == 4 ) iswvr = True ;
    563563          tpoolr->destroy( tcolr ) ;
    564564          Bool even = False ;
     
    645645            scTsysCol.attach( caltabsel, colTsys_ ) ;
    646646          }
     647
     648          sdh.npol = max( sdh.npol, npol ) ;
     649          if ( !iswvr && sdh.poltype == "" ) sdh.poltype = getPolType( corrtype[0] ) ;
     650
    647651//           time1 = gettimeofday_sec() ;
    648652//           os_ << "end 3rd iteration init: " << time1 << " (" << time1-time0 << "sec)" << LogIO::POST ;
  • trunk/src/STMath.cpp

    r2004 r2102  
    25302530  vec = 0;
    25312531  pols->table_.rwKeywordSet().define("nPol", Int(1));
    2532   //pols->table_.rwKeywordSet().define("POLTYPE", String("stokes"));
    2533   pols->table_.rwKeywordSet().define("POLTYPE", in->getPolType());
     2532  pols->table_.rwKeywordSet().define("POLTYPE", String("stokes"));
     2533  //pols->table_.rwKeywordSet().define("POLTYPE", in->getPolType());
    25342534  std::vector<CountedPtr<Scantable> > vpols;
    25352535  vpols.push_back(pols);
Note: See TracChangeset for help on using the changeset viewer.