Changeset 312
- Timestamp:
- 01/27/05 21:52:31 (20 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDMathWrapper.cc
r300 r312 248 248 } 249 249 250 void SDMathWrapper:: velocityAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime)251 { 252 SDMemTable* pIn = in.getPtr(); 253 SDMath sdm; 254 SDMemTable* pOut = sdm. velocityAlignment(*pIn, String(refTime));255 *pIn = *pOut; 256 delete pOut; 257 } 258 259 260 SDMemTableWrapper SDMathWrapper:: velocityAlignment (const SDMemTableWrapper& in,261 const std::string& refTime)262 { 263 const CountedPtr<SDMemTable>& pIn = in.getCP(); 264 SDMath sdm; 265 return CountedPtr<SDMemTable>(sdm. velocityAlignment(*pIn, String(refTime)));250 void SDMathWrapper::frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime) 251 { 252 SDMemTable* pIn = in.getPtr(); 253 SDMath sdm; 254 SDMemTable* pOut = sdm.frequencyAlignment(*pIn, String(refTime)); 255 *pIn = *pOut; 256 delete pOut; 257 } 258 259 260 SDMemTableWrapper SDMathWrapper::frequencyAlignment (const SDMemTableWrapper& in, 261 const std::string& refTime) 262 { 263 const CountedPtr<SDMemTable>& pIn = in.getCP(); 264 SDMath sdm; 265 return CountedPtr<SDMemTable>(sdm.frequencyAlignment(*pIn, String(refTime))); 266 266 } 267 267 -
trunk/src/SDMathWrapper.h
r300 r312 88 88 const std::string& method, bool doAll); 89 89 90 // Apply velocity alignment91 void velocityAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime);92 SDMemTableWrapper velocityAlignment(const SDMemTableWrapper& in, const std::string& refTime);90 // Apply frequency alignment 91 void frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime); 92 SDMemTableWrapper frequencyAlignment(const SDMemTableWrapper& in, const std::string& refTime); 93 93 94 94 // Apply opacity correction
Note:
See TracChangeset
for help on using the changeset viewer.