Changeset 398 for trunk/src


Ignore:
Timestamp:
02/09/05 13:07:20 (20 years ago)
Author:
kil064
Message:

add perFreqID arg to function frequencyAlign

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMathWrapper.cc

    r355 r398  
    250250
    251251void 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));
     252                                              const std::string& method, bool perFreqID)
     253{
     254  SDMemTable* pIn = in.getPtr();
     255  SDMath sdm;
     256  SDMemTable* pOut = sdm.frequencyAlignment(*pIn, String(refTime), String(method),
     257                                            Bool(perFreqID));
    257258  *pIn = *pOut;
    258259  delete pOut;
     
    262263SDMemTableWrapper SDMathWrapper::frequencyAlignment (const SDMemTableWrapper& in,
    263264                                                     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)));
     265                                                     const std::string& method,
     266                                                     bool perFreqID)
     267{
     268  const CountedPtr<SDMemTable>& pIn = in.getCP();
     269  SDMath sdm;
     270  return CountedPtr<SDMemTable>(sdm.frequencyAlignment(*pIn, String(refTime),
     271                                                       String(method), Bool(perFreqID)));
    269272}
    270273
  • trunk/src/SDMathWrapper.h

    r355 r398  
    9090// Apply frequency alignment
    9191  void frequencyAlignmentInSitu (SDMemTableWrapper& in, const std::string& refTime,
    92                                  const std::string& method);
     92                                 const std::string& method, bool perFreqID);
    9393  SDMemTableWrapper frequencyAlignment(const SDMemTableWrapper& in, const std::string& refTime,
    94                                        const std::string& method);
     94                                       const std::string& method, bool perFreqID);
    9595
    9696// Apply opacity correction
Note: See TracChangeset for help on using the changeset viewer.