Changeset 2185 for trunk/src


Ignore:
Timestamp:
06/07/11 14:33:47 (13 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes ASAP Trac #242

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 two issues in MSFiller/Writer:

  • flux unit wasn't correctly handled in MSWriter
  • fixed wrong antenna name when telescope name and station name are not available or equivalent with antenna name


Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2184 r2185  
    949949    sdh.antennaname = telescopeName + "//" + antennaName ;
    950950  }
    951   if ( stationName != "" ) {
     951  if ( stationName != "" && stationName != antennaName ) {
    952952    sdh.antennaname += "@" + stationName ;
    953953  }
  • trunk/src/MSWriter.cpp

    r2176 r2185  
    583583//   double startSec = gettimeofday_sec() ;
    584584//   os_ << "start MSWriter::setupMS() startSec=" << startSec << LogIO::POST ;
     585 
     586  String dunit = table_->getHeader().fluxunit ;
    585587
    586588  TableDesc msDesc = MeasurementSet::requiredTableDesc() ;
     
    593595
    594596  mstable_ = new MeasurementSet( newtab ) ;
     597
     598  TableColumn col ;
     599  if ( useFloatData_ )
     600    col.attach( *mstable_, "FLOAT_DATA" ) ;
     601  else if ( useData_ )
     602    col.attach( *mstable_, "DATA" ) ;
     603  col.rwKeywordSet().define( "UNIT", dunit ) ;
    595604
    596605  // create subtables
Note: See TracChangeset for help on using the changeset viewer.