BandpassPlot.h
1 //-*-C++-*-
2 
3 /***************************************************************************
4  *
5  * Copyright (C) 2009 by Jonathan Khoo
6  * Licensed under the Academic Free License version 2.1
7  *
8  ***************************************************************************/
9 
10 // psrchive/More/Plotting/Pulsar/BandpassPlot.h
11 
12 #ifndef BANDPASSTABLE_PLOT_H
13 #define BANDPASSTABLE_PLOT_H
14 
15 #include "Pulsar/FrequencyPlot.h"
16 #include <vector>
17 
18 namespace Pulsar
19 {
20  class BandpassPlot : public FrequencyPlot
21  {
22  public:
23 
24  BandpassPlot();
25 
26  ~BandpassPlot();
27 
28  class Interface : public TextInterface::To<BandpassPlot>
29  {
30  public:
31  Interface (BandpassPlot *s_instance = 0);
32  };
33 
34  TextInterface::Parser *get_interface();
35 
36  void prepare(const Pulsar::Archive *);
37 
38  virtual void preprocess(Pulsar::Archive* arch) {}
39 
40  void draw(const Pulsar::Archive*);
41 
43  void set_crop( float new_crop ) { crop = new_crop; }
44 
46  float get_crop() const { return crop; }
47 
49  std::vector<std::vector<float> > get_passbands() { return passbands; }
50 
51  private:
52 
53  std::vector<std::vector<float> > means;
54 
55  std::pair<float, float> means_minmax;
56 
57  std::vector<std::vector<float> > passbands;
58 
59  unsigned passband_npol;
60 
61  unsigned passband_nchan;
62 
63  float crop;
64  };
65 }
66 
67 #endif
The primary interface to pulsar observational data.
Definition: Archive.h:45
Plot of offpulse bandpass and channel weights.
Definition: BandpassChannelWeightPlot.h:21
Type * get() const
Defines the PSRCHIVE library.
Definition: CalSource.h:17

Generated using doxygen 1.8.17