Changeset 318


Ignore:
Timestamp:
01/28/05 14:46:59 (20 years ago)
Author:
kil064
Message:

frequency alignment now takes interpolation methd argumenbt

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r315 r318  
    249249}
    250250
    251 void SDMathWrapper::frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime)
    252 {
    253   SDMemTable* pIn = in.getPtr();
    254   SDMath sdm;
    255   SDMemTable* pOut = sdm.frequencyAlignment(*pIn, String(refTime));
     251void SDMathWrapper::frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime,
     252                                              const std::string& method)
     253{
     254  SDMemTable* pIn = in.getPtr();
     255  SDMath sdm;
     256  SDMemTable* pOut = sdm.frequencyAlignment(*pIn, String(refTime), String(method));
    256257  *pIn = *pOut;
    257258  delete pOut;
     
    260261
    261262SDMemTableWrapper SDMathWrapper::frequencyAlignment (const SDMemTableWrapper& in,
    262                                                      const std::string& refTime)
    263 {
    264   const CountedPtr<SDMemTable>& pIn = in.getCP();
    265   SDMath sdm;
    266   return CountedPtr<SDMemTable>(sdm.frequencyAlignment(*pIn, String(refTime)));
     263                                                     const std::string& refTime,
     264                                                     const std::string& method)
     265{
     266  const CountedPtr<SDMemTable>& pIn = in.getCP();
     267  SDMath sdm;
     268  return CountedPtr<SDMemTable>(sdm.frequencyAlignment(*pIn, String(refTime), String(method)));
    267269}
    268270
  • trunk/src/SDMathWrapper.h

    r315 r318  
    8989
    9090// Apply frequency alignment
    91   void frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime);
    92   SDMemTableWrapper frequencyAlignment(const SDMemTableWrapper& in, const std::string& refTime);
     91  void frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime,
     92                                 const std::string& method);
     93  SDMemTableWrapper frequencyAlignment(const SDMemTableWrapper& in, const std::string& refTime,
     94                                       const std::string& method);
    9395
    9496// Apply opacity correction
Note: See TracChangeset for help on using the changeset viewer.