StokesFluctPhase.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Plotting/Pulsar/StokesFluctPhase.h
10 
11 #ifndef __Pulsar_StokesFluctPhase_h
12 #define __Pulsar_StokesFluctPhase_h
13 
14 #include "Pulsar/FluctPlot.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19 
21  class StokesFluctPhase : public FluctPlot {
22 
23  public:
24 
27 
30 
31  // Text interface to the StokesFluctPhase class
32  class Interface : public TextInterface::To<StokesFluctPhase> {
33  public:
34  Interface (StokesFluctPhase* = 0);
35  };
36 
38  void draw (const Archive*);
39 
41  std::string get_ylabel (const Archive*);
42 
44  void get_profiles (const Archive*);
45 
47  void set_plot_values (const std::string& plot) { plot_values = plot; }
48  std::string get_plot_values () const { return plot_values; }
49 
51  void set_signal_to_noise (const bool plot) { signal_to_noise = plot; }
52  bool get_signal_to_noise () const { return signal_to_noise; }
53 
55  void set_plot_colours (const std::string& plot) { plot_colours = plot; }
56  std::string get_plot_colours () const { return plot_colours; }
57 
59  void set_plot_lines (const std::string& plot) { plot_lines = plot; }
60  std::string get_plot_lines () const { return plot_lines; }
61 
63  void set_plot_last_harmonic (bool p) { plot_last_harmonic = p; }
64  bool get_plot_last_harmonic () const { return plot_last_harmonic; }
65 
66  protected:
67 
68  bool signal_to_noise;
69  std::string plot_values;
70  std::string plot_colours;
71  std::string plot_lines;
72 
73  bool plot_last_harmonic;
74  unsigned last_harmonic;
75 
76  };
77 
78 }
79 
80 #endif
void set_signal_to_noise(const bool plot)
Signal-to-noise ratio on the y-axis.
Definition: StokesFluctPhase.h:56
void get_profiles(const Archive *)
Return the fluctuation power spectra to be plotted.
Definition: StokesFluctPhase.C:64
const PolnProfile * get_Stokes(const Archive *data, Index subint, Index chan)
Return a new PolnProfile with state == Signal::Stokes.
Definition: Index.C:158
Combines an index value and integrate flag.
Definition: Index.h:24
void find(const Profile *, double rms)
Find the last significant bin.
Definition: LastSignificant.C:58
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
void set_plot_last_harmonic(bool p)
Plot the last significant harmonic.
Definition: StokesFluctPhase.h:68
Find the last significant harmonic in a PSD.
Definition: LastSignificant.h:29
void set_plot_colours(const std::string &plot)
Set the colour for each value plotted.
Definition: StokesFluctPhase.h:60
Profile * fourier_transform(const Profile *, FTransform::Plan *=0)
Return the forward Fourier transform of the input Profile.
Definition: Fourier.C:41
Polarimetric pulse profile transformations and derivations.
Definition: PolnProfile.h:34
PhaseWeight * baseline(const Profile *)
Returns a new PhaseWeight instance.
Definition: BaselineEstimator.C:73
void draw(const Archive *)
Draw the profiles in the currently open window.
Definition: StokesFluctPhase.C:37
Plots fluctuation power spectra.
Definition: StokesFluctPhase.h:26
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: StokesFluctPhase.C:31
StokesFluctPhase()
Default constructor.
Definition: StokesFluctPhase.C:22
void set_plot_lines(const std::string &plot)
Set the line style for each value plotted.
Definition: StokesFluctPhase.h:64
Finds a baseline that contains gaussian white noise.
Definition: ExponentialBaseline.h:24
virtual void plot(const Archive *)
Plot in the current viewport.
Definition: SimplePlot.C:15
void set_plot_values(const std::string &plot)
Set the values to be plotted (one or more of I,Q,U,V,L,p)
Definition: StokesFluctPhase.h:52
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition: StokesFluctPhase.C:51
Defines the PSRCHIVE library.
Definition: CalSource.h:17
const Profile * get_Profile(const Archive *data, Index subint, Index pol, Index chan)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:24
unsigned get() const
Get the last signficant bin.
Definition: LastSignificant.C:46

Generated using doxygen 1.8.17