DynamicBaselineSpectrumPlot.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2009 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Pulsar_DynamicBaselineSpectrumPlot_h
10 #define __Pulsar_DynamicBaselineSpectrumPlot_h
11 
12 #include "Pulsar/DynamicSpectrumPlot.h"
13 #include "Pulsar/PhaseWeight.h"
14 
15 namespace Pulsar {
16 
18  class DynamicBaselineSpectrumPlot : public DynamicSpectrumPlot {
19 
20  public:
21 
24 
27 
30 
31  // Text interface to the PhaseVsFrequency class
32  class Interface : public TextInterface::To<DynamicBaselineSpectrumPlot> {
33  public:
34  Interface (DynamicBaselineSpectrumPlot* = 0);
35  };
36 
37  void get_plot_array(const Archive *data, float *array);
38 
39  bool get_use_variance() const { return use_variance; }
40  void set_use_variance(bool flag=true ) { use_variance = flag; }
41 
42  bool get_reuse_baseline() const { return reuse_baseline; }
43  void set_reuse_baseline(bool flag=true ) { reuse_baseline = flag; }
44 
46  void set_expression (const std::string& str) { expression = str; }
47  std::string get_expression () const { return expression; }
48 
49  protected:
50 
51  bool use_variance;
52  bool reuse_baseline;
54 
55  // expression evaluated by ProfileStats
56  std::string expression;
57  };
58 
59 }
60 
61 #endif
Application with basic command line options.
Definition: Application.h:30
~DynamicBaselineSpectrumPlot()
Default constructor.
Definition: DynamicBaselineSpectrumPlot.C:27
void set_expression(const std::string &str)
Set the ProfileStats expression to evaluate.
Definition: DynamicBaselineSpectrumPlot.h:56
Stores a weight for each Profile phase bin.
Definition: PhaseWeight.h:29
Plots off-pulse mean or variance as a func of time and freq.
Definition: DynamicBaselineSpectrumPlot.h:23
The primary interface to pulsar observational data.
Definition: Archive.h:45
Standard interpreter command line options.
Definition: StandardOptions.h:26
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: DynamicBaselineSpectrumPlot.C:31
virtual bool get_dedispersed() const =0
Inter-channel dispersion delay has been removed.
virtual void add(Item *)
void get_plot_array(const Archive *data, float *array)
Derived classes must fill in the nsubint by nchan data array.
Definition: DynamicBaselineSpectrumPlot.C:40
DynamicBaselineSpectrumPlot()
Default constructor.
Definition: DynamicBaselineSpectrumPlot.C:19
virtual Archive * clone() const =0
Return a new copy constructed instance equal to this.
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
Computes pulse profile statistics.
Definition: ProfileStats.h:35
virtual unsigned get_nbin() const =0
Get the number of pulsar phase bins used.
Calculates the signal-to-noise ratio by fitting against a standard.
Definition: StandardSNR.h:27
Algorithms that combine Integration data.
Definition: TimeAppend.h:24

Generated using doxygen 1.8.17