Changeset 896 for trunk/src/ScantableWrapper.h
- Timestamp:
- 03/10/06 12:09:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ScantableWrapper.h
r884 r896 63 63 } 64 64 65 std::vector<float> getSpectrum(int whichRow=0) const { 66 return table_->getSpectrum(whichRow); 65 std::vector<float> getSpectrum( int whichrow=0, 66 const std::string& poltype="linear" ) const { 67 return table_->getSpectrum(whichrow, poltype); 67 68 } 68 /*69 std::vector<float> getStokesSpectrum(int whichRow=0,70 bool linPol=false) const {71 return table_->getStokesSpectrum(whichRow, linPol);72 }73 74 std::vector<float> stokesToPolSpectrum(int whichRow=0, bool linear=false,75 int polIdx=-1) const {76 return table_->stokesToPolSpectrum(whichRow, linear, polIdx);77 }78 */79 69 // std::string getPolarizationLabel(bool linear, bool stokes, bool linPol, int polIdx) const { 80 70 // Boost fails with 4 arguments. … … 85 75 } 86 76 87 std::vector<double> getAbcissa(int which Row=0) const88 { return table_->getAbcissa(which Row); }77 std::vector<double> getAbcissa(int whichrow=0) const 78 { return table_->getAbcissa(whichrow); } 89 79 90 std::string getAbcissaLabel(int which Row=0) const91 { return table_->getAbcissaLabel(which Row); }80 std::string getAbcissaLabel(int whichrow=0) const 81 { return table_->getAbcissaLabel(whichrow); } 92 82 93 float getTsys(int which Row=0) const94 { return table_->getTsys(which Row); }83 float getTsys(int whichrow=0) const 84 { return table_->getTsys(whichrow); } 95 85 96 std::string getTime(int which Row=0) const97 { return table_->getTime(which Row); }86 std::string getTime(int whichrow=0) const 87 { return table_->getTime(whichrow); } 98 88 99 89 std::string getFluxUnit() const { return table_->getFluxUnit(); } … … 103 93 void setInstrument(const std::string& name) {table_->setInstrument(name);} 104 94 105 std::vector<bool> getMask(int which Row=0) const106 { return table_->getMask(which Row); }95 std::vector<bool> getMask(int whichrow=0) const 96 { return table_->getMask(whichrow); } 107 97 108 98 void flag() { table_->flag(); } 109 99 110 std::string getSourceName(int which Row=0) const111 { return table_->getSourceName(which Row); }100 std::string getSourceName(int whichrow=0) const 101 { return table_->getSourceName(whichrow); } 112 102 113 float getElevation(int which Row=0) const114 { return table_->getElevation(which Row); }103 float getElevation(int whichrow=0) const 104 { return table_->getElevation(whichrow); } 115 105 116 float getAzimuth(int which Row=0) const117 { return table_->getAzimuth(which Row); }106 float getAzimuth(int whichrow=0) const 107 { return table_->getAzimuth(whichrow); } 118 108 119 float getParAngle(int which Row=0) const120 { return table_->getParAngle(which Row); }109 float getParAngle(int whichrow=0) const 110 { return table_->getParAngle(whichrow); } 121 111 122 112 … … 133 123 void setSelection(const STSelector& sts) 134 124 { return table_->setSelection(sts);} 125 126 std::string getPolType() const { return table_->getPolType(); } 135 127 136 128 int nif(int scanno=-1) const {return table_->nif(scanno);} … … 175 167 { table_->addHistory(hist); } 176 168 /* 177 void addFit(int which Row, const std::vector<double>& p,169 void addFit(int whichrow, const std::vector<double>& p, 178 170 const std::vector<bool>& m, const std::vector<string>& f, 179 171 const std::vector<int>& c) { … … 183 175 casa::Vector<casa::String> f2 = mathutil::toVectorString(f); 184 176 casa::Vector<casa::Int> c2(c); 185 table_->addFit(casa::uInt(which Row), p2,m2,f2,c2);177 table_->addFit(casa::uInt(whichrow), p2,m2,f2,c2); 186 178 } 187 SDFitTable getSDFitTable(int which Row) {188 return table_->getSDFitTable(casa::uInt(which Row));179 SDFitTable getSDFitTable(int whichrow) { 180 return table_->getSDFitTable(casa::uInt(whichrow)); 189 181 } 190 182 */
Note: See TracChangeset
for help on using the changeset viewer.