Changeset 3106 for trunk/src/ScantableWrapper.h
- Timestamp:
- 10/04/16 18:20:50 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ScantableWrapper.h
r3085 r3106 45 45 { 46 46 GILHandler scopedRelease; 47 casa ::Table::TableType tp = casa::Table::Memory;48 if ( type == 1 ) tp = casa ::Table::Plain;47 casacore::Table::TableType tp = casacore::Table::Memory; 48 if ( type == 1 ) tp = casacore::Table::Plain; 49 49 table_ = new Scantable(name, tp); 50 50 } … … 53 53 { 54 54 GILHandler scopedRelease; 55 casa ::Table::TableType tp = casa::Table::Memory;56 if ( type == 1) tp = casa ::Table::Plain;55 casacore::Table::TableType tp = casacore::Table::Memory; 56 if ( type == 1) tp = casacore::Table::Plain; 57 57 table_= new Scantable(tp); 58 58 } 59 59 60 explicit ScantableWrapper(casa ::CountedPtr<Scantable> cp) : table_(cp) {;}60 explicit ScantableWrapper(casacore::CountedPtr<Scantable> cp) : table_(cp) {;} 61 61 62 62 ScantableWrapper(const ScantableWrapper& mt) : … … 105 105 // { return table_->getTime(whichrow); } 106 106 std::string getTime(int whichrow=0, int prec = 0) const 107 { return table_->getTime(whichrow, true, casa ::uInt(prec)); }107 { return table_->getTime(whichrow, true, casacore::uInt(prec)); } 108 108 109 109 double getIntTime(int whichrow=0) const … … 134 134 { table_->flag(whichrow, msk, unflag); } 135 135 136 void flagRow(const std::vector<casa ::uInt>& rows=std::vector<casa::uInt>(), bool unflag=false)136 void flagRow(const std::vector<casacore::uInt>& rows=std::vector<casacore::uInt>(), bool unflag=false) 137 137 { table_->flagRow(rows, unflag); } 138 138 … … 140 140 { return table_->getFlagRow(whichrow); } 141 141 142 void clip(const casa ::Float uthres, const casa::Float dthres, bool clipoutside=true, bool unflag=false)142 void clip(const casacore::Float uthres, const casacore::Float dthres, bool clipoutside=true, bool unflag=false) 143 143 { table_->clip(uthres, dthres, clipoutside, unflag); } 144 144 145 std::vector<bool> getClipMask(int whichrow, const casa ::Float uthres, const casa::Float dthres, bool clipoutside, bool unflag) const145 std::vector<bool> getClipMask(int whichrow, const casacore::Float uthres, const casacore::Float dthres, bool clipoutside, bool unflag) const 146 146 { return table_->getClipMask(whichrow, uthres, dthres, clipoutside, unflag); } 147 147 … … 236 236 { table_->setDirectionRefString(refstr); } 237 237 238 casa ::CountedPtr<Scantable> getCP() const {return table_;}238 casacore::CountedPtr<Scantable> getCP() const {return table_;} 239 239 Scantable* getPtr() {return &(*table_);} 240 240 … … 343 343 344 344 bool isAllChannelsFlagged(int whichrow=0) const 345 { return table_->isAllChannelsFlagged(casa ::uInt(whichrow)); }345 { return table_->isAllChannelsFlagged(casacore::uInt(whichrow)); } 346 346 347 347 std::vector<float> execFFT(int whichrow, const std::vector<bool>& mask, bool getRealImag=false, bool getAmplitudeOnly=false) … … 362 362 363 363 private: 364 casa ::CountedPtr<Scantable> table_;364 casacore::CountedPtr<Scantable> table_; 365 365 }; 366 366
Note: See TracChangeset
for help on using the changeset viewer.