Changeset 2025


Ignore:
Timestamp:
03/02/11 17:37:43 (14 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...

Bug fix on telescope name etc.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSFiller.cpp

    r2024 r2025  
    119119  }
    120120
    121   os_ << "Parsing MS options" << endl ;
    122   os_ << "   getPt = " << getPt_ << endl ;
    123   os_ << "   antenna = " << antenna_ << endl ;
    124   os_ << "   antennaStr = " << antennaStr_ << LogIO::POST ;
    125 
    126121  MeasurementSet *tmpMS = new MeasurementSet( filename, Table::Old ) ;
    127122  //mstable_ = (*tmpMS)( tmpMS->col("ANTENNA1") == antenna_
     
    133128    if ( id.size() > 0 )
    134129      antenna_ = id[0] ;
    135     os_ << "searched antenna_ = " << antenna_ << LogIO::POST ;
    136   }
     130  }
     131
     132  os_ << "Parsing MS options" << endl ;
     133  os_ << "   getPt = " << getPt_ << endl ;
     134  os_ << "   antenna = " << antenna_ << endl ;
     135  os_ << "   antennaStr = " << antennaStr_ << LogIO::POST ;
     136
    137137  mstable_ = MeasurementSet( (*tmpMS)( tmpMS->col("ANTENNA1") == antenna_
    138138                                       && tmpMS->col("ANTENNA1") == tmpMS->col("ANTENNA2") ) ) ;
     
    350350    if ( telescopeName == "" ) {
    351351      tcolr = tpoolr->construct( obstab, "TELESCOPE_NAME" ) ;
    352       sdh.observer = tcolr->asString( obsId ) ;
     352      telescopeName = tcolr->asString( obsId ) ;
    353353      tpoolr->destroy( tcolr ) ;
    354354    }
     
    11801180  //os_ << "mWeatherSel.nrow() = " << mWeatherSel.nrow() << LogIO::POST ;
    11811181  if ( mWeatherSel.nrow() == 0 ) {
    1182     os_ << "No rows with ANTENNA_ID = " << antenna_ << ", Try -1..." << LogIO::POST ;
     1182    os_ << "No rows with ANTENNA_ID = " << antenna_ << " in WEATHER table, Try -1..." << LogIO::POST ;
    11831183    mWeatherSel = Table( MSWeather( mWeather( mWeather.col("ANTENNA_ID") == -1 ) ) ) ;
    11841184    if ( mWeatherSel.nrow() == 0 ) {
     
    12731273  if ( !isSysCal_ ) {
    12741274    // add dummy row
    1275     os_ << "No SysCal rows" << LogIO::POST ;
     1275    os_ << "No SYSCAL rows" << LogIO::POST ;
    12761276    table_->tcal().table().addRow(1,True) ;
    12771277    Vector<Float> defaultTcal( 1, 1.0 ) ;
     
    12831283  Table sctab = mstable_.sysCal() ;
    12841284  if ( sctab.nrow() == 0 ) {
    1285     os_ << "No SysCal rows" << LogIO::POST ;
     1285    os_ << "No SYSCAL rows" << LogIO::POST ;
    12861286    return ;
    12871287  }
    12881288  Table sctabsel( sctab( sctab.col("ANTENNA_ID") == antenna_ ) ) ;
    12891289  if ( sctabsel.nrow() == 0 ) {
    1290     os_ << "No SysCal rows" << LogIO::POST ;
     1290    os_ << "No SYSCAL rows" << LogIO::POST ;
    12911291    return ;
    12921292  }
Note: See TracChangeset for help on using the changeset viewer.