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
15namespace Pulsar {
16
18
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_correlation (int idx) { correlation = idx; }
55 int get_correlation () const { return correlation; }
56
57 void set_configurable_projection (bool x) { configurable_projection = x; }
58 bool get_configurable_projection () const { return configurable_projection; }
59
60 void set_reduced_chisq (bool x) { reduced_chisq = x; }
61 bool get_reduced_chisq () const { return reduced_chisq; }
62
63 void set_intrinsic_crosspol_ratio (bool x) { intrinsic_crosspol_ratio = x; }
64 bool get_intrinsic_crosspol_ratio () const { return intrinsic_crosspol_ratio; }
65
66 void set_constant_gain (bool x) { constant_gain = x; }
67 bool get_constant_gain () const { return constant_gain; }
68
69 void set_outlier_threshold (float t) { outlier_threshold = t; }
70 float get_outlier_threshold () const { return outlier_threshold; }
71
73 void set_subint (const Index& isub) { subint = isub; }
75 Index get_subint () const { return subint; }
76
77 protected:
78
80 std::vector< Reference::To<CalibratorParameter> > parameter;
81
83
84 float between_panels = 0.05;
85
87 std::string panels;
88
90 bool calibrator_stokes = false;
91
94
97
99 int correlation = -1;
100
102 bool reduced_chisq = false;
103
106
108 bool constant_gain = false;
109
111 float outlier_threshold = 0.0;
112
113 // Sub-integration from which to derive a solution
114 Index subint;
115 };
116
117}
118
119#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
std::vector< Reference::To< CalibratorParameter > > parameter
Separate panels for each class of calibrator parameters.
Definition CalibratorInfo.h:80
bool reduced_chisq
plot the goodness-of-fit statistic
Definition CalibratorInfo.h:102
bool calibrator_stokes_degree
plot the calibrator Stokes parameters w/ degree of polarization
Definition CalibratorInfo.h:93
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition CalibratorInfo.C:168
bool configurable_projection
plot the configurable projection parameters
Definition CalibratorInfo.h:96
bool constant_gain
plot constant gain flux calibrator information
Definition CalibratorInfo.h:108
void prepare(const Archive *)
Ensure that frames are properly initialized.
Definition CalibratorInfo.C:30
CalibratorInfo()
Default constructor.
Definition CalibratorInfo.C:25
void set_subint(const Index &isub)
Set the sub-integration Idex.
Definition CalibratorInfo.h:73
int correlation
plot the cross-correlation between parameters
Definition CalibratorInfo.h:99
bool intrinsic_crosspol_ratio
plot the intrinsic cross-polarization ratio
Definition CalibratorInfo.h:105
std::string panels
panels to be plotted
Definition CalibratorInfo.h:87
float between_panels
spacing between plot panels
Definition CalibratorInfo.h:84
bool calibrator_stokes
plot the calibrator Stokes parameters
Definition CalibratorInfo.h:90
Index get_subint() const
Get the sub-integration Idex.
Definition CalibratorInfo.h:75
float outlier_threshold
threshold used to detect outliers when creating SingleAxis calibrator
Definition CalibratorInfo.h:111
Combines an index value and integrate flag.
Definition Index.h:19
MultiFrequency()
Default constructor.
Definition MultiFrequency.C:10
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0