- Timestamp:
- 02/24/09 14:12:51 (16 years ago)
- Location:
- branches/alma/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/src/MathUtils.cpp
r1514 r1516 84 84 String str(which); 85 85 str.upcase(); 86 if (str.matches(String("MIN POS"))) {86 if (str.matches(String("MIN_ABC"))) { 87 87 return minPos; 88 } else if (str.matches(String("MAX POS"))) {88 } else if (str.matches(String("MAX_ABC"))) { 89 89 return maxPos; 90 90 } else { -
branches/alma/src/STMath.cpp
r1514 r1516 1097 1097 } 1098 1098 1099 std::vector< int > STMath::minMax Pos( const CountedPtr< Scantable > & in,1099 std::vector< int > STMath::minMaxChan( const CountedPtr< Scantable > & in, 1100 1100 const std::vector< bool > & mask, 1101 1101 const std::string& which ) … … 1113 1113 if (ma.ndim() != 1) { 1114 1114 throw (ArrayError( 1115 "std::vector<int> STMath::minMax Pos("1115 "std::vector<int> STMath::minMaxChan(" 1116 1116 "ContedPtr<Scantable> &in, std::vector<bool> &mask, " 1117 1117 " std::string &which)" -
branches/alma/src/STMath.h
r1514 r1516 207 207 const std::string& which); 208 208 209 std::vector< int > minMax Pos(const casa::CountedPtr<Scantable>& in,210 const std::vector<bool>& mask,211 const std::string& which);209 std::vector< int > minMaxChan(const casa::CountedPtr<Scantable>& in, 210 const std::vector<bool>& mask, 211 const std::string& which); 212 212 213 213 casa::CountedPtr<Scantable> bin( const casa::CountedPtr<Scantable>& in, -
branches/alma/src/STMathWrapper.h
r1514 r1516 121 121 { return STMath::statistic(in.getCP(), mask, which); } 122 122 123 std::vector<int> minMax Pos(const ScantableWrapper& in,123 std::vector<int> minMaxChan(const ScantableWrapper& in, 124 124 const std::vector<bool>& mask, 125 125 const std::string& which) 126 { return STMath::minMax Pos(in.getCP(), mask, which); }126 { return STMath::minMaxChan(in.getCP(), mask, which); } 127 127 128 128 ScantableWrapper bin( const ScantableWrapper& in, int width=5) -
branches/alma/src/python_STMath.cpp
r1514 r1516 57 57 .def("_dofs", &STMathWrapper::dofs) 58 58 .def("_stats", &STMathWrapper::statistic) 59 .def("_minmax pos", &STMathWrapper::minMaxPos)59 .def("_minmaxchan", &STMathWrapper::minMaxChan) 60 60 .def("_freqswitch", &STMathWrapper::freqSwitch) 61 61 .def("_bin", &STMathWrapper::bin)
Note:
See TracChangeset
for help on using the changeset viewer.