Ignore:
Timestamp:
01/22/13 19:01:34 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: Yes/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...

Defined python interface for calibration that supports both
on-the-fly and interferometry-style (generate caltable and apply)
calibration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STApplyCal.cpp

    r2735 r2742  
    6565  caltype_ = STCalEnum::NoType;
    6666  doTsys_ = False;
     67  iTime_ = STCalEnum::DefaultInterpolation;
     68  iFreq_ = STCalEnum::DefaultInterpolation;
    6769}
    6870
    6971void STApplyCal::reset()
    7072{
     73  // call init
     74  init();
     75
     76  // clear apply tables
     77  // do not delete object here
     78  skytable_.resize(0);
     79  tsystable_.resize(0);
     80
     81  // clear mapping for Tsys transfer
     82  spwmap_.clear();
     83
     84  // reset selector
     85  sel_.reset();
     86 
     87  // delete interpolators
     88  interpolatorT_ = 0;
     89  interpolatorS_ = 0;
     90  interpolatorF_ = 0;
     91
     92  // clear working scantable
     93  work_ = 0;
     94 
     95  // clear calibrator
     96  calibrator_ = 0;
    7197}
    7298
     
    139165}
    140166
    141 void STApplyCal::apply(Bool insitu)
     167void STApplyCal::apply(Bool insitu, Bool filltsys)
    142168{
    143169  os_.origin(LogOrigin("STApplyCal","apply",WHERE));
     
    202228void STApplyCal::doapply(uInt beamno, uInt ifno, uInt polno,
    203229                         Vector<uInt> &rows,
    204                          Vector<uInt> &skylist)
     230                         Vector<uInt> &skylist,
     231                         Bool filltsys)
    205232{
    206233  os_.origin(LogOrigin("STApplyCal","doapply",WHERE));
     
    379406    //os_ << "calibrated=" << calibrator_->getCalibrated() << LogIO::POST;
    380407    spCol.put(irow, calibrator_->getCalibrated());
    381     tsysCol.put(irow, iTsys);
     408    if (filltsys)
     409      tsysCol.put(irow, iTsys);
    382410  }
    383411 
     
    421449void STApplyCal::save(const String &name)
    422450{
    423   if (work_.null())
    424     return;
     451  assert(!work_.null());
    425452
    426453  work_->setSelection(sel_);
Note: See TracChangeset for help on using the changeset viewer.