Ignore:
Timestamp:
02/16/05 12:29:26 (19 years ago)
Author:
mar637
Message:
  • added FITS subtable for fitting and relevant functions to set fits and put/get SDFitContainer
  • cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTableWrapper.h

    r433 r455  
    8181  }
    8282
    83   std::vector<float> getStokesSpectrum(int whichRow=0, bool doPol=false, float paOff=0.0) const {
     83  std::vector<float> getStokesSpectrum(int whichRow=0, bool doPol=false,
     84                                       float paOff=0.0) const {
    8485    return table_->getStokesSpectrum(whichRow, doPol, paOff);
    8586  }
    8687
    87   std::vector<float> getCircularSpectrum(int whichRow=0, bool doRR=true) const {
     88  std::vector<float> getCircularSpectrum(int whichRow=0,
     89                                         bool doRR=true) const {
    8890    return table_->getCircularSpectrum(whichRow, doRR);
    8991  }
     
    187189  }
    188190
     191  void addFit(int whichRow, const std::vector<double>& p,
     192              const std::vector<bool>& m, const std::vector<string>& f,
     193              const std::vector<int>& c) {
     194   
     195    casa::Vector<casa::Double> p2(p);
     196    casa::Vector<casa::Bool> m2(m);
     197    casa::Vector<casa::String> f2(f.size());
     198    casa::uInt i=0;
     199    std::vector<std::string>::const_iterator it;
     200    for (it=f.begin();it != f.end();++it) {
     201      f2[i] = casa::String(*it);
     202    }
     203    casa::Vector<casa::Int> c2(c);
     204    table_->addFit(casa::uInt(whichRow), p2,m2,f2,c2);
     205  }
     206
    189207  void rotateXYPhase (float value, bool doAll) {
    190208      table_->rotateXYPhase(value, doAll);
Note: See TracChangeset for help on using the changeset viewer.