Changeset 868


Ignore:
Timestamp:
03/06/06 10:52:08 (19 years ago)
Author:
mar637
Message:

added assign
some renaming for consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r864 r868  
    5656    table_(mt.getCP()) {;}
    5757
     58  void assign(const ScantableWrapper& mt)
     59    { table_= mt.getCP(); }
     60
    5861  ScantableWrapper copy() {
    5962    return ScantableWrapper(new Scantable(*(this->getCP()), false));
    6063  }
    61   /*
     64
    6265  std::vector<float> getSpectrum(int whichRow=0) const {
    6366    return table_->getSpectrum(whichRow);
    6467  }
    65 
     68  /*
    6669  std::vector<float> getStokesSpectrum(int whichRow=0,
    6770                                       bool linPol=false) const {
     
    8588    { return table_->getAbcissa(whichRow); }
    8689
    87   std::string getAbcissaString(int whichRow=0) const
    88     { return table_->getAbcissaString(whichRow); }
     90  std::string getAbcissaLabel(int whichRow=0) const
     91    { return table_->getAbcissaLabel(whichRow); }
    8992
    9093  float getTsys(int whichRow=0) const
     
    117120    { return table_->getParAngle(whichRow); }
    118121
    119   void setSpectrum(std::vector<float> spectrum, int whichrow=0)
    120     { table_->setSpectrum(spectrum, whichrow); }
     122
     123//   void setSpectrum(std::vector<float> spectrum, int whichrow=0)
     124//     { table_->setSpectrum(spectrum, whichrow); }
    121125
    122126  int getIF(int whichrow) const {return table_->getIF(whichrow);}
    123127  int getBeam(int whichrow) const {return table_->getBeam(whichrow);}
    124128  int getPol(int whichrow) const {return table_->getPol(whichrow);}
     129  int getCycle(int whichrow) const {return table_->getCycle(whichrow);}
     130  int getScan(int whichrow) const {return table_->getScan(whichrow);}
    125131
    126132  STSelector getSelection() const { return table_->getSelection(); }
     133  void setSelection(const STSelector& sts)
     134    { return table_->setSelection(sts);}
    127135
    128136  int nif(int scanno=-1) const {return table_->nif(scanno);}
     
    137145    { table_->makePersistent(fname); }
    138146
    139   void setRestFreqs(double rf, const std::string& unit)
    140     { table_->setRestFreqs(rf, unit); }
     147  void setRestFrequencies(double rf, const std::string& unit)
     148    { table_->setRestFrequencies(rf, unit); }
    141149
    142   void setRestFreqs(const std::string& name) {
    143     table_->setRestFreqs(name);
     150  void setRestFrequencies(const std::string& name) {
     151    table_->setRestFrequencies(name);
    144152  }
    145153
Note: See TracChangeset for help on using the changeset viewer.