Ignore:
Timestamp:
11/12/08 17:04:01 (16 years ago)
Author:
TakTsutsumi
Message:

Merged recent updates (since 2007) from nrao-asap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/STMathWrapper.h

    r1388 r1446  
    188188  { return ScantableWrapper(STMath::lagFlag(in.getCP(), frequency, width)); }
    189189
     190  // test for average spectra with different channel/resolution
     191  ScantableWrapper
     192    new_average( const std::vector<ScantableWrapper>& in,
     193                 const bool& compel,
     194                 const std::vector<bool>& mask,
     195                 const std::string& weight,
     196                 const std::string& avmode )
     197  {
     198    std::vector<casa::CountedPtr<Scantable> > sts;
     199    for (unsigned int i=0; i<in.size(); ++i) sts.push_back(in[i].getCP());
     200    return ScantableWrapper(STMath::new_average(sts, compel, mask, weight, avmode));
     201  }
     202
    190203};
    191204
Note: See TracChangeset for help on using the changeset viewer.