Changeset 2742 for trunk/src/STApplyCal.cpp
- Timestamp:
- 01/22/13 19:01:34 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STApplyCal.cpp
r2735 r2742 65 65 caltype_ = STCalEnum::NoType; 66 66 doTsys_ = False; 67 iTime_ = STCalEnum::DefaultInterpolation; 68 iFreq_ = STCalEnum::DefaultInterpolation; 67 69 } 68 70 69 71 void STApplyCal::reset() 70 72 { 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; 71 97 } 72 98 … … 139 165 } 140 166 141 void STApplyCal::apply(Bool insitu )167 void STApplyCal::apply(Bool insitu, Bool filltsys) 142 168 { 143 169 os_.origin(LogOrigin("STApplyCal","apply",WHERE)); … … 202 228 void STApplyCal::doapply(uInt beamno, uInt ifno, uInt polno, 203 229 Vector<uInt> &rows, 204 Vector<uInt> &skylist) 230 Vector<uInt> &skylist, 231 Bool filltsys) 205 232 { 206 233 os_.origin(LogOrigin("STApplyCal","doapply",WHERE)); … … 379 406 //os_ << "calibrated=" << calibrator_->getCalibrated() << LogIO::POST; 380 407 spCol.put(irow, calibrator_->getCalibrated()); 381 tsysCol.put(irow, iTsys); 408 if (filltsys) 409 tsysCol.put(irow, iTsys); 382 410 } 383 411 … … 421 449 void STApplyCal::save(const String &name) 422 450 { 423 if (work_.null()) 424 return; 451 assert(!work_.null()); 425 452 426 453 work_->setSelection(sel_);
Note: See TracChangeset
for help on using the changeset viewer.