CalPhVFreqPlot.h
1/***************************************************************************
2 *
3 * Copyright (C) 2007 by David Smith
4 * Licensed under the Academic Free License version 2.1
5 *
6 ***************************************************************************/
7
8
9
10#ifndef __Cal_Ph_V_Freq_Plot_h
11#define __Cal_Ph_V_Freq_Plot_h
12
13
14#include <Pulsar/Plot.h>
15#include <Pulsar/SimplePlot.h>
16#include <Pulsar/Index.h>
17#include <vector>
18
19
20namespace Pulsar
21{
23 class CalPhVFreqPlot : public SimplePlot
24 {
25 public:
26 CalPhVFreqPlot();
27
30
32 std::string get_xlabel (const Archive*);
33
35 std::string get_ylabel (const Archive*);
36
38 void prepare (const Archive*);
39
41 virtual void preprocess (Archive* archive) {}
42
44 void draw (const Archive*);
45
47 void set_subint (const Index& _isubint) { isubint = _isubint; }
48 Index get_subint () const { return isubint; }
49
51 void set_pol( const Index & _ipol ) { ipol = _ipol; }
52 Index get_pol() const { return ipol; }
53
54 const void minmaxval( std::vector<float> thearray, float &min, float &max );
55
56 // Text interface to the AnglePlot class
57 class Interface : public TextInterface::To<CalPhVFreqPlot>
58 {
59 public:
60 Interface (CalPhVFreqPlot *s_instance = 0);
61 };
62
63 private:
64 Index ipol;
65 Index isubint;
66
67 unsigned int npol;
68 unsigned int nchan;
69
70 Reference::To<Archive> copy;
71
72 std::vector<float> cal, sys, xx;
73
74 float mincal;
75 float maxcal;
76 float minsys;
77 float maxsys;
78 };
79
80}
81
82#endif // __Cal_Ph_V_Freq_Plot_h
83
84
The primary interface to pulsar observational data.
Definition Archive.h:46
void set_subint(const Index &_isubint)
Set the sub-integration to plot (where applicable)
Definition CalPhVFreqPlot.h:47
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition CalPhVFreqPlot.C:43
std::string get_xlabel(const Archive *)
Get the default label for the x axis.
Definition CalPhVFreqPlot.C:50
void set_pol(const Index &_ipol)
Set the polarization to plot (where applicable)
Definition CalPhVFreqPlot.h:51
void draw(const Archive *)
draw the angle as a function of pulse phase
Definition CalPhVFreqPlot.C:78
virtual void preprocess(Archive *archive)
preprocess, overriden to not remove baseline
Definition CalPhVFreqPlot.h:41
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition CalPhVFreqPlot.C:58
void prepare(const Archive *)
do some preparation ???
Definition CalPhVFreqPlot.C:66
Combines an index value and integrate flag.
Definition Index.h:19
Plots a single plot.
Definition SimplePlot.h:33
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0