BackendCorrection.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Polarimetry/Pulsar/BackendCorrection.h
10 
11 #ifndef __Pulsar_BackendCorrection_H
12 #define __Pulsar_BackendCorrection_H
13 
14 #include "Reference.h"
15 #include "Jones.h"
16 
17 namespace Pulsar {
18 
19  class Archive;
20  class Backend;
21 
23  class BackendCorrection : public Reference::Able
24  {
25 
26  public:
27 
28  bool verbose;
29 
31 
33  void operator () (Archive*) const;
34 
36  bool required (const Archive*) const;
37 
38  bool must_correct_lsb (const Backend*, const Archive*) const;
39  bool must_correct_phase (const Backend*) const;
40 
41  };
42 
43 
44 }
45 
46 #endif
47 
bool get_corrected() const
True if backend corrections were applied during calibration.
Definition: Backend.C:131
void set_corrected(bool corrected=true)
True if backend corrections were applied during calibration.
Definition: Backend.C:137
Expert * expert()
Provide access to the expert interface.
Definition: Integration.C:162
Stores information about the instrument backend.
Definition: Backend.h:26
bool get_downconversion_corrected() const
True if backend has compensated for lower sideband downconversion.
Definition: Backend.C:119
void set_hand(Signal::Hand)
Set the hand of the backend.
Definition: Backend.C:101
The primary interface to pulsar observational data.
Definition: Archive.h:45
void scale(double scale)
multiplies each bin of the profile by scale
Definition: Profile.C:311
const ExtensionType * get() const
Template method searches for an Extension of the specified type.
Signal::Hand get_hand() const
Get the hand of the backend.
Definition: Backend.C:95
bool required(const Archive *) const
Return true if the operation is required.
Definition: BackendCorrection.C:47
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
void swap_profiles(unsigned ipol, unsigned ichan, unsigned jpol, unsigned jchan)
Swap the two specified Profiles.
Definition: IntegrationExpert.h:97
void operator()(Archive *) const
Calibrate the polarization of the given archive.
Definition: BackendCorrection.C:61
bool verbose
Definition: timer++.C:25
virtual double get_bandwidth() const =0
Get the overall bandwidth of the observation.
void set_downconversion_corrected(bool corrected=true)
True if backend has compensated for lower sideband downconversion.
Definition: Backend.C:125
Correct the backend convention.
Definition: BackendCorrection.h:28
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Signal::Argument get_argument() const
Get the argument of the backend.
Definition: Backend.C:107
Profile * get_Profile(unsigned ipol, unsigned ichan)
Returns a pointer to the Profile given by the specified indeces.
Definition: Integration.C:306

Generated using doxygen 1.8.17