PhaseVsMore.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2016 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/Plotting/Pulsar/PhaseVsMore.h
10 
11 #ifndef __Pulsar_PhaseVsMore_h
12 #define __Pulsar_PhaseVsMore_h
13 
14 #include "Pulsar/PhaseVsPlot.h"
15 #include "Pulsar/Profile.h"
16 
17 namespace Pulsar {
18 
20  class PhaseVsMore : public PhaseVsPlot
21  {
22  public:
23 
26 
29 
30  // Text interface to the PhaseVsMore class
31  class Interface : public TextInterface::To<PhaseVsMore>
32  {
33  public:
34  Interface (PhaseVsMore* = 0);
35  };
36 
38  std::string get_ylabel (const Archive*);
39 
41  unsigned get_nrow (const Archive* data);
42 
44  const Profile* get_Profile (const Archive* data, unsigned row);
45 
47  void set_subint (const unsigned& _isubint) { isubint = _isubint; }
48  unsigned get_subint () const { return isubint; }
49 
51  void set_chan (const unsigned& _ichan) { ichan = _ichan; }
52  unsigned get_chan () const { return ichan; }
53 
55  void prepare (const Archive *data);
56 
57  protected:
58 
59  unsigned isubint;
60  unsigned ichan;
61 
63  };
64 
65 }
66 
67 #endif
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: PhaseVsMore.C:25
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition: PhaseVsMore.C:30
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_subint(const unsigned &_isubint)
Set the sub-integration to plot (where applicable)
Definition: PhaseVsMore.h:57
const Profile * get_Profile(const Archive *data, unsigned row)
Derived classes must provide the Profile for the specified row.
Definition: PhaseVsMore.C:42
Definition: MoreProfiles.h:24
Profile * get_Profile(unsigned subint, unsigned pol, unsigned chan)
Return pointer to the specified profile.
Definition: Archive.C:270
unsigned get_nrow(const Archive *data)
Derived classes must provide the number of rows.
void prepare(const Archive *data)
Prepare for plotting.
Definition: PhaseVsMore.C:35
PhaseVsMore()
Default constructor.
Definition: PhaseVsMore.C:16
Plots images of something as a function of pulse phase vs something.
Definition: PhaseVsMore.h:25
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
Represents an axis with radio frequency ordinate.
Definition: MoreScale.h:26
const ExtensionType * get() const
Template method searches for an Extension of the specified type.
void set_chan(const unsigned &_ichan)
Set the frequency channel to plot.
Definition: PhaseVsMore.h:61

Generated using doxygen 1.8.17