Changeset 472 for trunk/src/SDMemTable.h


Ignore:
Timestamp:
02/18/05 11:16:27 (19 years ago)
Author:
kil064
Message:

add a new getStokesSPectrum function (for the writer) which gets all
Stokes or a beam/IF slice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.h

    r465 r472  
    103103  // getCircularSpectrum is 'getCircular'
    104104
    105 
    106   // Get Stokes at cursor location. One of either I,Q,U,V or I,P,PA,V
    107   // (doPol=True) If the latter, you can add a PA offset (degrees)
     105  // Get specific Stokes at cursor location. One of either I,Q,U,V or I,P,PA,V (doPol=True)
     106  // (determined by the polSel cursor location 0->3)
     107  // If the latter, you can add a PA offset (degrees)
    108108  virtual std::vector<float> getStokesSpectrum(casa::Int whichRow=0,
    109109                                               casa::Bool doPol=casa::False,
     
    114114                                                 casa::Bool rr=casa::True) const;
    115115
     116  // Get all Stokes at the specified Beam/IF cursor location (ignoring
     117  // the internal cursor).  -1 means all on that axis.  Really, this function
     118  // should not be here, and the SDContainer should hold the stokes spectrum
     119  // as well.  However, because the Stokes column is virtual, and its shape
     120  // is not the same as nPol(), I have put it here for direct access as needed
     121  virtual casa::Array<casa::Float> getStokesSpectrum(casa::Int whichRow=0,
     122                                                     casa::Int iBeam=-1,
     123                                                     casa::Int iIF=-1) const;
     124
     125  // Get Tsys at cursor location
    116126  virtual casa::Float getTsys(casa::Int whichRow=0) const;
     127
    117128  // get all as aips++ Vectors
    118129  virtual void getSpectrum(casa::Vector<casa::Float>& spectrum,
     
    120131  //virtual void getMask(Vector<Bool>& mask,Int whichRow=0) const;
    121132
     133  // Get rest frequencies
    122134  std::vector<double> getRestFreqs() const;
    123135 
Note: See TracChangeset for help on using the changeset viewer.