Changeset 957 for trunk/src/STPol.h


Ignore:
Timestamp:
03/31/06 17:01:45 (18 years ago)
Author:
mar637
Message:

Polarisation changes according to Ticket #8; Fix Ticket #10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STPol.h

    r904 r957  
    5252      else if ( mode == "linpol" )
    5353        return getLinPol(index);
    54       else if ( mode == "cicular" )
    55         return getLinPol(index);
     54      else if ( mode == "circular" )
     55        return getCircular(index);
    5656      else
    5757        throw(casa::AipsError("Polarisation type unknown"));
     
    8282    { basespectra_.resize(); basespectra_ = spec; }
    8383
    84   void setPhaseCorrections(casa::Float, casa::Float, casa::Float) {}
     84
     85  void setPhaseCorrections(casa::Float parangle=0.0, casa::Float totalfeed=0.0,
     86                           casa::Float feedhand=1.0)
     87    { totalfeed_=totalfeed;parangle_=parangle;feedhand_=feedhand;}
     88
     89  casa::Float getTotalPhase() const { return totalfeed_+parangle_; }
     90  casa::Float getFeedHand() const { return feedhand_; }
    8591
    8692  static std::pair<int, std::string> polFromString(const std::string& key);
     
    9399  static std::map<std::string, std::map<int, std::string> > labelmap_;
    94100
    95   casa::Vector<casa::Float> phaseCorrections_;
     101  casa::Float totalfeed_,parangle_,feedhand_;
    96102  std::string mode_;
    97103  casa::Matrix<casa::Float> basespectra_;
Note: See TracChangeset for help on using the changeset viewer.