PolarCalibrator.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2003 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/PolarCalibrator.h
10 
11 #ifndef __PolarCalibrator_H
12 #define __PolarCalibrator_H
13 
14 #include "Pulsar/ReferenceCalibrator.h"
15 #include "MEAL/Polar.h"
16 
17 namespace Pulsar {
18 
20  class PolarCalibrator : public ReferenceCalibrator {
21 
22  public:
23 
25  PolarCalibrator (const Archive* archive);
26 
29 
31  PolarCalibrator* clone () const;
32 
35 
37  class Info : public PolnCalibrator::Info {
38 
39  public:
40 
42  Info (const PolnCalibrator* calibrator);
43 
45  std::string get_title () const;
46 
48  unsigned get_nclass () const;
49 
51  std::string get_name (unsigned iclass) const;
52 
54  unsigned get_nparam (unsigned iclass) const;
55 
57  Estimate<float> get_param (unsigned ichan, unsigned iclass,
58  unsigned iparam) const;
59 
60  };
61 
63  Info* get_Info () const;
64 
65  protected:
66 
67  // ///////////////////////////////////////////////////////////////////
68  //
69  // Pulsar::ReferenceCalibrator implementation
70  //
71  // ///////////////////////////////////////////////////////////////////
72 
74  MEAL::Complex2* solve (const std::vector<Estimate<double> >& hi,
75  const std::vector<Estimate<double> >& lo);
76 
77  };
78 
79 }
80 
81 #endif
Jones< double > evaluate(std::vector< Jones< double > > *grad=0) const
unsigned get_nclass() const
Return the number of parameter classes.
Definition: PolarCalibrator.C:153
Estimate< float > get_param(unsigned ichan, unsigned iclass, unsigned iparam) const
Return the estimate of the specified parameter.
Definition: PolarCalibrator.C:204
void set_gain(const Estimate< double > &gain)
~PolarCalibrator()
Destructor.
Definition: PolarCalibrator.C:37
MEAL::Complex2 * solve(const std::vector< Estimate< double > > &hi, const std::vector< Estimate< double > > &lo)
Return a new Calibration::Polar instance.
Definition: PolarCalibrator.C:111
void set_boost(unsigned i, const Estimate< double > &b_i)
unsigned get_nparam(unsigned iclass) const
Return the number of parameters in the specified class.
Definition: PolarCalibrator.C:174
Info(const PolnCalibrator *calibrator)
Constructor.
Definition: PolarCalibrator.C:142
Definition: Archive.h:26
The primary interface to pulsar observational data.
Definition: Archive.h:45
Type * release()
Reference::To< Type > type
The type of the Calibrator.
Definition: Calibrator.h:115
static unsigned verbose
Verbosity level.
Definition: Calibrator.h:40
void set_rotation(unsigned i, const Estimate< double > &phi_i)
Represents the system as a polar decomposition.
Definition: PolarCalibrator.h:25
static Type * factory(const std::string &name)
Construct a new instance of Calibrator::Type, based on name.
Definition: CalibratorType.C:12
Calibrators derived from reference source observations.
Definition: ReferenceCalibrator.h:31
void solve(Jones< Estimate< double > > &jones)
Polar decompose the Jones matrix.
Definition: Polar_solve.C:17
Communicates PolarCalibrator parameters to plotting routines.
Definition: PolarCalibrator.h:47
Polarimetric calibrators.
Definition: PolnCalibrator.h:41
std::string get_title() const
Return the title.
Definition: PolarCalibrator.C:147
PolarCalibrator * clone() const
Clone operator.
Definition: PolarCalibrator.C:32
PolarCalibrator(const Archive *archive)
Construct from an single PolnCal Pulsar::Archive.
Definition: PolarCalibrator.C:18
Defines the PSRCHIVE library.
Definition: CalSource.h:17
double get_variance(unsigned index) const
Info * get_Info() const
Return the PolarAxisCalibrator information.
Definition: PolarCalibrator.C:239
const Rotation * get_rotation_transformation() const
bool source_set
Flag raised when the reference_source attribute is set.
Definition: ReferenceCalibrator.h:108
Telescope pointing parameters recorded during the observation.
Definition: Pointing.h:27
std::string get_name(unsigned iclass) const
Return the name of the specified class.
Definition: PolarCalibrator.C:159

Generated using doxygen 1.8.17