CalibratorInfo.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2012 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Pulsar_CalibratorInfo_h
10 #define __Pulsar_CalibratorInfo_h
11 
12 #include "Pulsar/MultiFrequency.h"
13 #include "Pulsar/CalibratorParameter.h"
14 
15 namespace Pulsar {
16 
18 
23  class CalibratorInfo : public MultiFrequency
24  {
25  public:
26 
29 
32 
33  // Text interface to the CalibratorInfo class
34  class Interface : public TextInterface::To<CalibratorInfo> {
35  public:
36  Interface (CalibratorInfo* = 0);
37  };
38 
40  void prepare (const Archive*);
41 
42  void set_between_panels (float x) { between_panels = x; }
43  float get_between_panels () const { return between_panels; }
44 
45  void set_panels (const std::string& x) { panels = x; }
46  std::string get_panels () const { return panels; }
47 
48  void set_calibrator_stokes (bool x) { calibrator_stokes = x; }
49  bool get_calibrator_stokes () const { return calibrator_stokes; }
50 
51  void set_calibrator_stokes_degree (bool x);
52  bool get_calibrator_stokes_degree () const;
53 
54  void set_reduced_chisq (bool x) { reduced_chisq = x; }
55  bool get_reduced_chisq () const { return reduced_chisq; }
56 
57  void set_intrinsic_crosspol_ratio (bool x) { intrinsic_crosspol_ratio = x; }
58  bool get_intrinsic_crosspol_ratio () const { return intrinsic_crosspol_ratio; }
59 
60  void set_constant_gain (bool x) { constant_gain = x; }
61  bool get_constant_gain () const { return constant_gain; }
62 
63  void set_outlier_threshold (float t) { outlier_threshold = t; }
64  float get_outlier_threshold () const { return outlier_threshold; }
65 
67  void set_subint (const Index& isub) { subint = isub; }
69  Index get_subint () const { return subint; }
70 
71  protected:
72 
74  std::vector< Reference::To<CalibratorParameter> > parameter;
75 
78 
80  std::string panels;
81 
83  bool calibrator_stokes;
84 
87 
89  bool reduced_chisq;
90 
93 
95  bool constant_gain;
96 
98  float outlier_threshold;
99 
100  // Sub-integration from which to derive a solution
101  Index subint;
102 
103 
104  };
105 
106 }
107 
108 #endif
Combines an index value and integrate flag.
Definition: Index.h:24
FluxCalibrator parameter communication.
Definition: ConstantGainInfo.h:24
bool constant_gain
plot constant gain flux calibrator information
Definition: CalibratorInfo.h:105
Index get_subint() const
Get the sub-integration Idex.
Definition: CalibratorInfo.h:79
bool reduced_chisq
plot the goodness-of-fit statistic
Definition: CalibratorInfo.h:99
The primary interface to pulsar observational data.
Definition: Archive.h:45
void set_subint(const Index &isub)
Set the sub-integration Idex.
Definition: CalibratorInfo.h:77
Stores the Stokes parameters of the reference source.
Definition: CalibratorStokes.h:28
const ExtensionType * get() const
Template method searches for an Extension of the specified type.
void prepare(const Archive *)
Ensure that frames are properly initialized.
Definition: CalibratorInfo.C:38
virtual std::string get_title() const =0
Return the title to print above the plot.
float outlier_threshold
threshold used to detect outliers when creating SingleAxis calibrator
Definition: CalibratorInfo.h:108
Communicates PolnCalibrator solver parameters to plotting routines.
Definition: SolverInfo.h:26
Communicates CalibratorStokes parameters to plotting routines.
Definition: CalibratorStokesInfo.h:26
void set_degree(bool flag)
Add an additional class for the calibrator degree of polarization.
Definition: CalibratorStokesInfo.h:56
bool intrinsic_crosspol_ratio
plot the intrinsic cross-polarization ratio
Definition: CalibratorInfo.h:102
Definition: Calibrator.h:152
Plots every class of model parameters from Calibrator::Info.
Definition: CalibratorInfo.h:28
bool calibrator_stokes_degree
plot the calibrator Stokes parameters w/ degree of polarization
Definition: CalibratorInfo.h:96
Polarimetric calibrators.
Definition: PolnCalibrator.h:41
Plots a single class of model parameters from Calibrator::Info.
Definition: CalibratorParameter.h:28
Calibrates flux using standard candles and artificial sources.
Definition: FluxCalibrator.h:29
CalibratorInfo()
Default constructor.
Definition: CalibratorInfo.C:23
std::string panels
panels to be plotted
Definition: CalibratorInfo.h:90
std::vector< Reference::To< CalibratorParameter > > parameter
Separate panels for each class of calibrator parameters.
Definition: CalibratorInfo.h:84
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Communicates PolnCalibrator IXR to plotting routines.
Definition: IXRInfo.h:24
bool calibrator_stokes
plot the calibrator Stokes parameters
Definition: CalibratorInfo.h:93
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: CalibratorInfo.C:162
float between_panels
spacing between plot panels
Definition: CalibratorInfo.h:87
virtual unsigned get_nclass() const =0
Return the number of parameter classes.

Generated using doxygen 1.8.17