FrontendCorrection.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Polarimetry/Pulsar/FrontendCorrection.h
10
11#ifndef __Pulsar_FrontendCorrection_H
12#define __Pulsar_FrontendCorrection_H
13
14#include "Pulsar/Calibrator.h"
15#include "Pulsar/BasisCorrection.h"
16#include "Pulsar/ProjectionCorrection.h"
17
18namespace Pulsar
19{
21
25
27 {
28
29 public:
30
32 bool required (const Archive*);
33
35 void set_archive (const Archive*);
36
38 Jones<double> get_transformation (unsigned isub);
39
42
44 Jones<double> get_projection (unsigned isub);
45
47 std::string get_summary () const;
48
49 // ///////////////////////////////////////////////////////////////////
50 //
51 // Calibrator implementation
52 //
53 // ///////////////////////////////////////////////////////////////////
54
56 void calibrate (Archive* archive);
57
59 void undo (Archive* archive);
60
62 unsigned get_nchan () const { return 0; }
63
65 float get_weight (unsigned) const { return 1.0; }
66
68 CalibratorExtension* new_Extension () const { return 0; }
69
70 protected:
71
74
77
80
81 };
82
83}
84
85#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
Corrects the basis, based on FD_POLN, FD_HAND and FD_SANG.
Definition BasisCorrection.h:26
Stores Calibrator parameters in an Archive.
Definition CalibratorExtension.h:23
Calibrator()
Default constructor.
Definition Calibrator.C:64
Corrects the recorded properties of the frontend.
Definition FrontendCorrection.h:27
Jones< double > get_projection(unsigned isub)
Return the transformation from sky to receptors.
Definition FrontendCorrection.C:61
void set_archive(const Archive *)
Set the archive for which corrections will be calculated.
Definition FrontendCorrection.C:32
std::string get_summary() const
Return a summary of parameters relevant to get_transformation.
Definition FrontendCorrection.C:67
float get_weight(unsigned) const
Get the weight of any channel.
Definition FrontendCorrection.h:65
BasisCorrection basis_correction
The basis correction.
Definition FrontendCorrection.h:73
void calibrate(Archive *archive)
Calibrate the Pulsar::Archive.
Definition FrontendCorrection.C:72
Jones< double > basis_transformation
The basis correction transformation applies to all sub-integrations.
Definition FrontendCorrection.h:76
Jones< double > get_basis()
Return the transformation to the receptor basis.
Definition FrontendCorrection.C:55
unsigned get_nchan() const
Get the number of frequency channels in the calibrator.
Definition FrontendCorrection.h:62
Jones< double > get_transformation(unsigned isub)
Return the transformation from sky to receptor basis.
Definition FrontendCorrection.C:39
bool required(const Archive *)
Return true if the archive needs to be corrected.
Definition FrontendCorrection.C:18
void undo(Archive *archive)
Undo any frontend calibration of the Pulsar::Archive.
Definition FrontendCorrection.C:117
CalibratorExtension * new_Extension() const
Returns a new CalibratorExtension.
Definition FrontendCorrection.h:68
ProjectionCorrection projection_correction
The projection correction.
Definition FrontendCorrection.h:79
Computes the projection of the receptors onto the sky.
Definition ProjectionCorrection.h:48
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0