Changeset 858 for trunk


Ignore:
Timestamp:
03/01/06 11:49:55 (19 years ago)
Author:
mar637
Message:

changed average interface to use std::vector<bool> instead of casa::Vector
added default arguments to average

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r847 r858  
    5555CountedPtr<Scantable>
    5656STMath::average( const std::vector<CountedPtr<Scantable> >& in,
    57                  const Vector<Bool>& mask,
     57                 const std::vector<bool>& mask,
    5858                 const std::string& weight,
    5959                 const std::string& avmode,
     
    107107  }
    108108  RowAccumulator acc(wtype);
    109   acc.setUserMask(mask);
     109  Vector<Bool> cmask(mask);
     110  acc.setUserMask(cmask);
    110111  ROTableRow row(tout);
    111112  ROArrayColumn<Float> specCol, tsysCol;
  • trunk/src/STMath.h

    r841 r858  
    5454  casa::CountedPtr<Scantable>
    5555    average( const std::vector<casa::CountedPtr<Scantable> >& in,
    56              const casa::Vector<casa::Bool>& mask,
    57              const std::string& weight,
    58              const std::string& avmode = "",
     56             const std::vector<bool>& mask = std::vector<bool>(),
     57             const std::string& weight = "NONE",
     58             const std::string& avmode = "SCAN",
    5959             bool alignfreq = false );
    6060
Note: See TracChangeset for help on using the changeset viewer.