Changeset 300
- Timestamp:
- 01/26/05 02:00:25 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.cc
r295 r300 150 150 } 151 151 152 void SDMathWrapper::resampleInSitu(SDMemTableWrapper& in, const std::string& method, 153 float width) 154 { 155 SDMemTable* pIn = in.getPtr(); 156 SDMath sdm; 157 SDMemTable* pOut = sdm.resample(*pIn, String(method), Float(width)); 158 *pIn = *pOut; 159 delete pOut; 160 } 161 162 SDMemTableWrapper SDMathWrapper::resample (const SDMemTableWrapper& in, 163 const std::string& method, float width) 164 { 165 const CountedPtr<SDMemTable>& pIn = in.getCP(); 166 SDMath sdm; 167 return CountedPtr<SDMemTable>(sdm.resample(*pIn, String(method), Float(width))); 168 } 169 152 170 153 171 void SDMathWrapper::averagePolInSitu(SDMemTableWrapper& in, -
trunk/src/SDMathWrapper.h
r295 r300 71 71 SDMemTableWrapper bin(const SDMemTableWrapper& in, int width); 72 72 73 // Resample 74 void resampleInSitu(SDMemTableWrapper& in, const std::string& method, float width); 75 SDMemTableWrapper resample(const SDMemTableWrapper& in, const std::string& method, 76 float width); 77 73 78 // Convert brightness between Jy and K 74 79 void convertFluxInSitu(SDMemTableWrapper& in, float area, float eta, bool doAll); -
trunk/src/python_SDMath.cc
r268 r300 97 97 def("bin_insitu", &SDMathWrapper::binInSitu); 98 98 // 99 def("resample", &SDMathWrapper::resample); 100 def("resample_insitu", &SDMathWrapper::resampleInSitu); 101 // 99 102 def("stats", &SDMathWrapper::statistic); 100 103 };
Note:
See TracChangeset
for help on using the changeset viewer.