HybridCalibrator.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/HybridCalibrator.h
10 
11 #ifndef __HybridCalibrator_H
12 #define __HybridCalibrator_H
13 
14 #include "Pulsar/PolnCalibrator.h"
15 
16 namespace Calibration {
17  class SingleAxisSolver;
18 }
19 
20 namespace Pulsar {
21 
22  class ReferenceCalibrator;
23  class CalibratorStokes;
24 
27  {
28 
29  public:
30 
33 
35  HybridCalibrator (const Archive* data);
36 
39 
41  MJD get_epoch () const;
42 
44  unsigned get_nchan () const;
45 
47  void set_reference_input (const CalibratorStokes* reference,
48  std::string filename = "");
49 
51  void set_reference_observation (const ReferenceCalibrator* observation);
52  const ReferenceCalibrator* get_reference_observation ();
53 
55  void set_precalibrator (PolnCalibrator* calibrator);
56 
57  protected:
58 
61 
63  bool get_valid (unsigned ichan) const;
64 
66  unsigned get_maximum_nchan () const;
67 
70 
73 
76 
79 
80  };
81 
82 }
83 
84 #endif
Jones< double > evaluate(std::vector< Jones< double > > *grad=0) const
Reference::To< Calibration::SingleAxisSolver > solver
The SingleAxis model solver.
Definition: HybridCalibrator.h:78
Supplements a SystemCalibrator with a SingleAxisCalibrator.
Definition: HybridCalibrator.h:26
bool get_valid(unsigned ichan) const
Get the validity flag for the specified channel.
Definition: CalibratorStokes.C:88
Reference::To< PolnCalibrator > precalibrator
The PolnCalibrator to be supplemented.
Definition: HybridCalibrator.h:75
const Archive * get_Archive() const
Return a const reference to the calibrator archive.
Definition: Calibrator.C:125
void solve(const std::vector< Estimate< double > > &output)
Solve for gain, boost, and rotation given output cal state.
Definition: SingleAxis.C:175
The primary interface to pulsar observational data.
Definition: Archive.h:45
unsigned get_nchan() const
Get the number of frequency channels.
Definition: CalibratorStokes.C:67
Contains information about the receiver and receiver platform.
Definition: Receiver.h:28
unsigned get_nchan() const
Get the number of frequency channels in the calibrator.
Definition: HybridCalibrator.C:129
Computes a weighted mean Jones matrix using Cloude target decomposition.
Definition: MeanJones.h:24
Reference::To< const CalibratorStokes > reference_input
The Stokes parameters of the input reference signal.
Definition: HybridCalibrator.h:69
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.
static unsigned verbose
Verbosity level.
Definition: Calibrator.h:40
Correct the backend convention.
Definition: BasisCorrection.h:28
void calculate_transformation()
Fill the transformation vector of the PolnCalibrator base class.
Definition: HybridCalibrator.C:351
Instrumental gain, differential gain, and differential phase.
Definition: SingleAxis.h:38
Reference::To< const ReferenceCalibrator > reference_observation
The Stokes parameters of the observed reference signal.
Definition: HybridCalibrator.h:72
Calibrators derived from reference source observations.
Definition: ReferenceCalibrator.h:31
bool get_valid(unsigned ichan) const
Return channel validity at the original resolution, if necessary.
Definition: HybridCalibrator.C:292
void set_precalibrator(PolnCalibrator *calibrator)
Set the PolnCalibrator to be supplemented.
Definition: HybridCalibrator.C:87
Ord, van Straten, Hotan & Bailes (2004; MNRAS 352:804), section 2.1.
Definition: CalibratorTypes.h:176
virtual std::string get_name() const=0
void set_reference_input(const CalibratorStokes *reference, std::string filename="")
Set the Stokes parameters of the reference signal.
Definition: HybridCalibrator.C:55
~HybridCalibrator()
Destructor.
Definition: HybridCalibrator.C:44
virtual std::string get_filenames() const
Return a string containing the file information.
Definition: Calibrator.C:110
unsigned get_maximum_nchan() const
Return the number of channels in the PolnCalibrator.
Definition: HybridCalibrator.C:102
Polarimetric calibrators.
Definition: PolnCalibrator.h:41
HybridCalibrator(PolnCalibrator *precalibrator=0)
Construct from another PolnCalibrator instance.
Definition: HybridCalibrator.C:36
const std::string get_message() const
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Stokes< Estimate< float > > get_stokes(unsigned ichan) const
Get the Stokes parameters of the specified frequency channel.
Definition: CalibratorStokes.C:107
void set_reference_observation(const ReferenceCalibrator *observation)
Set the ReferenceCalibrator data from which to derive a SingleAxis.
Definition: HybridCalibrator.C:69
Physical parameterization of the instrumental response.
Definition: BackendFeed.h:31
MJD get_epoch() const
Return the reference epoch of the calibration experiment.
Definition: HybridCalibrator.C:48

Generated using doxygen 1.8.17