Changeset 504


Ignore:
Timestamp:
02/23/05 14:02:08 (19 years ago)
Author:
kil064
Message:

remiove pa offset from getStokesSpectrum

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r499 r504  
    4343#include <casa/Arrays/Vector.h>
    4444#include <casa/BasicMath/Math.h>
     45#include <casa/BasicSL/Constants.h>
    4546#include <casa/Quanta/MVAngle.h>
    4647
     
    377378
    378379
    379 std::vector<float> SDMemTable::getStokesSpectrum(Int whichRow, Bool doPol,
    380                                                  Float paOffset) const
     380std::vector<float> SDMemTable::getStokesSpectrum(Int whichRow, Bool doPol) const
    381381//
    382382// Gets one STokes parameter depending on cursor polSel location
     
    394394  if (doPol && (polSel_==1 || polSel_==2)) {       //   Q,U --> P, P.A.
    395395
    396     // Set current cursor location
     396// Set current cursor location
     397
    397398     const IPosition& shape = arr.shape();
    398399     IPosition start, end;
    399400     getCursorSlice(start, end, shape);
    400401
    401      // Get Q and U slices
     402// Get Q and U slices
    402403
    403404     Array<Float> Q = SDPolUtil::getStokesSlice(arr,start,end,"Q");
    404405     Array<Float> U = SDPolUtil::getStokesSlice(arr,start,end,"U");
    405406
    406      // Compute output
     407// Compute output
    407408
    408409     Array<Float> out;
     
    410411        out = SDPolUtil::polarizedIntensity(Q,U);
    411412     } else if (polSel_==2) {                                 // P.A.
    412         out = SDPolUtil::positionAngle(Q,U) + paOffset;
     413        out = SDPolUtil::positionAngle(Q,U);
    413414     }
    414415
  • trunk/src/SDMemTable.h

    r493 r504  
    102102  // If the latter, you can add a PA offset (degrees)
    103103  virtual std::vector<float> getStokesSpectrum(casa::Int whichRow=0,
    104                                                casa::Bool doPol=casa::False,
    105                                                casa::Float paOffset=0.0) const;
     104                                               casa::Bool doPol=casa::False) const;
    106105
    107106  // Returns Label for polarization selected by polSel_ (or over-ridden
Note: See TracChangeset for help on using the changeset viewer.