Changeset 2759 for trunk/src


Ignore:
Timestamp:
02/05/13 15:58:17 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_sdcal2

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

  • Throw exception when empty string is specified in STApplyTable::save().
  • Use TSYS in the data when Tsys calibration is not done.


Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STApplyCal.cpp

    r2758 r2759  
    406406    }
    407407    else {
    408       iTsys = 1.0;
     408      Vector<Float> tsysInRow = tsysCol(irow);
     409      if (tsysInRow.nelements() == 1) {
     410        iTsys = tsysInRow[0];
     411      }
     412      else {
     413        for (uInt ichan = 0; ichan < nchanTsys; ++ichan)
     414          iTsys[ichan] = tsysInRow[ichan];
     415      }
    409416    }
    410417    //os_ << "iTsys=" << iTsys << LogIO::POST;
  • trunk/src/STApplyTable.cpp

    r2734 r2759  
    1111//
    1212#include <casa/Exceptions/Error.h>
     13#include <casa/Utilities/Assert.h>
    1314#include <tables/Tables/TableDesc.h>
    1415#include <tables/Tables/SetupNewTab.h>
     
    120121void STApplyTable::save(const String &name)
    121122{
     123  assert_<AipsError>(name.size() > 0, "Output name is empty."); 
    122124  table_.deepCopy(name, Table::New);
    123125}
Note: See TracChangeset for help on using the changeset viewer.