Changeset 312


Ignore:
Timestamp:
01/27/05 21:52:31 (19 years ago)
Author:
kil064
Message:

replace veloicity alignment by frequency alignment function

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r300 r312  
    248248}
    249249
    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)));
     250void 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
     260SDMemTableWrapper 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)));
    266266}
    267267
  • trunk/src/SDMathWrapper.h

    r300 r312  
    8888                                  const std::string& method, bool doAll);
    8989
    90 // Apply velocity alignment
    91   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);
    9393
    9494// Apply opacity correction
Note: See TracChangeset for help on using the changeset viewer.