Changeset 896 for trunk/src/Scantable.h


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/Scantable.h

    r894 r896  
    3939#include "STSelector.h"
    4040#include "STHistory.h"
    41 
    42 
     41#include "STPol.h"
    4342
    4443namespace asap {
     
    205204  int npol(int scanno=-1) const;
    206205
     206  std::string getPolType() const;
     207
    207208  /**
    208209   * Get the number of channels in the data or a specific IF. This currently
     
    246247
    247248  std::vector<bool> getMask(int whichrow) const;
    248   std::vector<float> getSpectrum(int whichrow) const;
     249  std::vector<float> getSpectrum(int whichrow,
     250                                 const std::string& poltype ="linear") const;
    249251
    250252  void setSpectrum(const std::vector<float>& spec, int whichrow);
    251253
    252   std::vector<float> getStokesSpectrum( int whichrow=0,
    253                                         bool dopol=false) const;
    254254  std::string getPolarizationLabel(bool linear, bool stokes,
    255255                                   bool linpol,
     
    303303  STHistory& history() { return historyTable_; }
    304304
     305  static const std::map<std::string, STPol::STPolFactory *>& getFactories()
     306    { return factories_; }
     307
    305308private:
     309
     310  casa::Matrix<casa::Float> getPolMatrix( casa::uInt whichrow ) const;
     311
    306312  /**
    307313   * Turns a time vale into a formatted string
     
    395401  casa::ScalarColumn<casa::uInt> mmolidCol_;
    396402
     403  static std::map<std::string, STPol::STPolFactory *> factories_;
     404  void initFactories();
     405
    397406};
    398407
Note: See TracChangeset for help on using the changeset viewer.