Changeset 493 for trunk/src/SDMemTable.h


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

function stokesLength() -> nStokes()

getStokesSpectrumLabel and getCircularSpectrumLabel combined into

getPolarizationLabel

getCircularSpectrum -> stokesToPolSpectrum

This is a more consistent set. Move some functionality to SDPolUtil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r490 r493  
    9494  virtual std::vector<bool> getMask(casa::Int whichRow=0) const;
    9595
    96   // When we can handle input correlations being either circular or
    97   // linear, we should probably have functions; getLinear,
    98   // getCircular, getStokes since one can inter-convert between all
    99   // three regardless of the input provided there are 4
    100   // polarizations. For now, we are assuming, if there are 4
    101   // polarizations, that we have linears.  getSpectrum is then
    102   // 'getLinear', getStokesSpectrum is 'getStokes' and
    103   // getCircularSpectrum is 'getCircular'
    104 
    10596  // Get length of STokes spectrum. XX & YY -> I
    10697  // Anything else the length stays the same.
    107   int stokesLength() const;
     98  int nStokes() const;
    10899
    109100  // Get specific Stokes at cursor location. One of either I,Q,U,V or I,P,PA,V (doPol=True)
     
    114105                                               casa::Float paOffset=0.0) const;
    115106
    116   // Returns String for selected Stokes (polSel_)
    117   std::string getStokesSpectrumLabel (casa::Bool doPol) const;
    118 
    119   // Get RR or LL at cursor location (except not polSel_)
    120   virtual std::vector<float> getCircularSpectrum(casa::Int whichRow=0,
    121                                                  casa::Bool rr=casa::True) const;
    122 
    123   // Get circular label
    124   std::string getCircularSpectrumLabel (casa::Bool rr=casa::True) const;
     107  // Returns Label for polarization selected by polSel_ (or over-ridden
     108  // with arg. polIdx).  If doStokes is False,
     109  // returns label for raw correlations (linear or circular). If True returns label for
     110  // Stokes.  If doPol=False, I,Q,U,V else I,P,PA,V
     111  std::string getPolarizationLabel (casa::Bool linear, casa::Bool stokes,
     112                                    casa::Bool linPol, casa::Int polIdx=-1) const;
     113
     114  // Convert Stokes to linear or circular polarizations (specified by polIdx=0:3).
     115  // Presently, only conversion to RR or LL is supported.
     116  virtual std::vector<float> stokesToPolSpectrum (casa::Int whichRow, casa::Bool toLinear,
     117                                                  casa::uInt polIdx) const;
    125118
    126119  // Get all Stokes at the specified Beam/IF cursor location (ignoring
Note: See TracChangeset for help on using the changeset viewer.