Ignore:
Timestamp:
02/21/05 18:05:58 (19 years ago)
Author:
kil064
Message:

rework bindings for stokes conversion and associated functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTableWrapper.h

    r483 r494  
    8585    return table_->getSpectrum(whichRow);
    8686  }
    87 
    88   std::vector<float> getStokesSpectrum(int whichRow=0, bool doPol=false,
     87//
     88  std::vector<float> getStokesSpectrum(int whichRow=0, bool linPol=false,
    8989                                       float paOff=0.0) const {
    90     return table_->getStokesSpectrum(whichRow, doPol, paOff);
    91   }
    92 
    93   std::vector<float> getCircularSpectrum(int whichRow=0,
    94                                          bool doRR=true) const {
    95     return table_->getCircularSpectrum(whichRow, doRR);
    96   }
    97 
     90    return table_->getStokesSpectrum(whichRow, linPol, paOff);
     91  }
     92
     93  std::vector<float> stokesToPolSpectrum (int whichRow, bool linear,
     94                                          int polIdx) const {
     95    return table_->stokesToPolSpectrum(whichRow, linear, polIdx);
     96  }
     97
     98//  std::string getPolarizationLabel (bool linear, bool stokes, bool linPol, int polIdx) const {
     99// Boost fails with 4 arguments.
     100  std::string getPolarizationLabel (bool linear, bool stokes, bool linPol) const {
     101     int polIdx = -1;
     102     return table_->getPolarizationLabel (linear, stokes, linPol, polIdx);
     103  }
     104//
    98105  std::vector<double> getAbcissa(int whichRow=0) const {
    99106    return table_->getAbcissa(whichRow);
     
    151158  int nScan() {return table_->nScan();}
    152159  int nRow() {return table_->nRow();}
     160  int nStokes() {return table_->nStokes();}
    153161
    154162  //sets the mask
Note: See TracChangeset for help on using the changeset viewer.