HOPS
HOPS class reference
MHO_LinearDParCorrection.hh
Go to the documentation of this file.
1 #ifndef MHO_LinearDParCorrection_HH__
2 #define MHO_LinearDParCorrection_HH__
3 
4 #include <cctype>
5 #include <cmath>
6 #include <complex>
7 #include <map>
8 #include <vector>
9 
10 #include "MHO_Constants.hh"
11 #include "MHO_Message.hh"
12 
14 #include "MHO_TableContainer.hh"
15 #include "MHO_UnaryOperator.hh"
16 
17 #include "MHO_Reducer.hh"
18 
19 namespace hops
20 {
21 
33 class MHO_LinearDParCorrection: public MHO_UnaryOperator< visibility_type >
34 {
35  public:
37  virtual ~MHO_LinearDParCorrection();
38 
44  void SetPolProductSet(std::vector< std::string >& pp_vec) { fPolProductSet = pp_vec; };
45 
46  // //these data objects are not used yet, but could be needed if we want to apply
47  // //time-dependence to the pol-product pre-factors
48  // void SetReferenceStationCoordinateData(station_coord_type* ref_data){fRefData = ref_data;};
49  // void SetRemoteStationCoordinateData(station_coord_type* rem_data){fRemData = rem_data;};
50 
51  //parallactic angle values for each station (expects degrees)
57  void SetReferenceParallacticAngle(double p) { fRefParAngle = p; }
58 
64  void SetRemoteParallacticAngle(double p) { fRemParAngle = p; }
65 
66  // //not currently used (but needed for circ-circ pol sum)
67  // void SetReferenceMountType(std::string mt){fRefMountType = mt;}
68  // void SetRemoteMountType(std::string mt){fRemMountType = mt;}
69 
70  protected:
78  virtual bool ExecuteInPlace(visibility_type* in) override;
79 
80  private:
81  //multiplies each pol product by the appropriate scaling pre-factor
87  void PreMultiply(visibility_type* in);
88 
95  std::complex< double > GetPrefactor(std::string pp_label);
96 
97  std::vector< std::string > fPolProductSet;
98 
99  double fRefParAngle;
100  double fRemParAngle;
101  std::string fRefMountType;
102  std::string fRemMountType;
103 };
104 
105 } // namespace hops
106 
107 #endif
Class MHO_LinearDParCorrection.
Definition: MHO_LinearDParCorrection.hh:34
MHO_LinearDParCorrection()
Definition: MHO_LinearDParCorrection.cc:8
virtual ~MHO_LinearDParCorrection()
Definition: MHO_LinearDParCorrection.cc:10
void SetPolProductSet(std::vector< std::string > &pp_vec)
Setter for pol product set.
Definition: MHO_LinearDParCorrection.hh:44
void SetReferenceParallacticAngle(double p)
Setter for reference station parallactic angle.
Definition: MHO_LinearDParCorrection.hh:57
virtual bool ExecuteInPlace(visibility_type *in) override
Applies linear delta-parallactic angle correction to visibility data in-place.
Definition: MHO_LinearDParCorrection.cc:12
void SetRemoteParallacticAngle(double p)
Setter for remote station parallactic angle.
Definition: MHO_LinearDParCorrection.hh:64
Class MHO_UnaryOperator.
Definition: MHO_UnaryOperator.hh:24
Definition: MHO_AdhocFlagging.hh:18