Ignore:
Timestamp:
03/10/06 12:09:29 (18 years ago)
Author:
mar637
Message:

enable polarimetry in asap2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ScantableWrapper.h

    r884 r896  
    6363  }
    6464
    65   std::vector<float> getSpectrum(int whichRow=0) const {
    66     return table_->getSpectrum(whichRow);
     65  std::vector<float> getSpectrum( int whichrow=0,
     66                                  const std::string& poltype="linear" ) const {
     67    return table_->getSpectrum(whichrow, poltype);
    6768  }
    68   /*
    69   std::vector<float> getStokesSpectrum(int whichRow=0,
    70                                        bool linPol=false) const {
    71     return table_->getStokesSpectrum(whichRow, linPol);
    72   }
    73 
    74   std::vector<float> stokesToPolSpectrum(int whichRow=0, bool linear=false,
    75                                          int polIdx=-1) const {
    76     return table_->stokesToPolSpectrum(whichRow, linear, polIdx);
    77   }
    78   */
    7969  //  std::string getPolarizationLabel(bool linear, bool stokes, bool linPol, int polIdx) const {
    8070  // Boost fails with 4 arguments.
     
    8575  }
    8676
    87   std::vector<double> getAbcissa(int whichRow=0) const
    88     { return table_->getAbcissa(whichRow); }
     77  std::vector<double> getAbcissa(int whichrow=0) const
     78    { return table_->getAbcissa(whichrow); }
    8979
    90   std::string getAbcissaLabel(int whichRow=0) const
    91     { return table_->getAbcissaLabel(whichRow); }
     80  std::string getAbcissaLabel(int whichrow=0) const
     81    { return table_->getAbcissaLabel(whichrow); }
    9282
    93   float getTsys(int whichRow=0) const
    94     { return table_->getTsys(whichRow); }
     83  float getTsys(int whichrow=0) const
     84    { return table_->getTsys(whichrow); }
    9585
    96   std::string getTime(int whichRow=0) const
    97     { return table_->getTime(whichRow); }
     86  std::string getTime(int whichrow=0) const
     87    { return table_->getTime(whichrow); }
    9888
    9989  std::string getFluxUnit() const { return table_->getFluxUnit(); }
     
    10393  void setInstrument(const std::string& name) {table_->setInstrument(name);}
    10494
    105   std::vector<bool> getMask(int whichRow=0) const
    106     { return table_->getMask(whichRow); }
     95  std::vector<bool> getMask(int whichrow=0) const
     96    { return table_->getMask(whichrow); }
    10797
    10898  void flag() { table_->flag(); }
    10999
    110   std::string getSourceName(int whichRow=0) const
    111     { return table_->getSourceName(whichRow); }
     100  std::string getSourceName(int whichrow=0) const
     101    { return table_->getSourceName(whichrow); }
    112102
    113   float getElevation(int whichRow=0) const
    114     { return table_->getElevation(whichRow); }
     103  float getElevation(int whichrow=0) const
     104    { return table_->getElevation(whichrow); }
    115105
    116   float getAzimuth(int whichRow=0) const
    117     { return table_->getAzimuth(whichRow); }
     106  float getAzimuth(int whichrow=0) const
     107    { return table_->getAzimuth(whichrow); }
    118108
    119   float getParAngle(int whichRow=0) const
    120     { return table_->getParAngle(whichRow); }
     109  float getParAngle(int whichrow=0) const
     110    { return table_->getParAngle(whichrow); }
    121111
    122112
     
    133123  void setSelection(const STSelector& sts)
    134124    { return table_->setSelection(sts);}
     125
     126  std::string getPolType() const { return table_->getPolType(); }
    135127
    136128  int nif(int scanno=-1) const {return table_->nif(scanno);}
     
    175167    { table_->addHistory(hist); }
    176168  /*
    177   void addFit(int whichRow, const std::vector<double>& p,
     169  void addFit(int whichrow, const std::vector<double>& p,
    178170              const std::vector<bool>& m, const std::vector<string>& f,
    179171              const std::vector<int>& c) {
     
    183175    casa::Vector<casa::String> f2 = mathutil::toVectorString(f);
    184176    casa::Vector<casa::Int> c2(c);
    185     table_->addFit(casa::uInt(whichRow), p2,m2,f2,c2);
     177    table_->addFit(casa::uInt(whichrow), p2,m2,f2,c2);
    186178  }
    187   SDFitTable getSDFitTable(int whichRow) {
    188     return table_->getSDFitTable(casa::uInt(whichRow));
     179  SDFitTable getSDFitTable(int whichrow) {
     180    return table_->getSDFitTable(casa::uInt(whichrow));
    189181  }
    190182  */
Note: See TracChangeset for help on using the changeset viewer.