DynamicSNSpectrumPlot.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_DynamicSNSpectrumPlot_h
10 #define __Pulsar_DynamicSNSpectrumPlot_h
11 
12 #include "Pulsar/DynamicSpectrumPlot.h"
13 
14 namespace Pulsar {
15 
17  class DynamicSNSpectrumPlot : public DynamicSpectrumPlot {
18 
19  public:
20 
23 
26 
29 
30  // Text interface to the PhaseVsFrequency class
31  class Interface : public TextInterface::To<DynamicSNSpectrumPlot> {
32  public:
33  Interface (DynamicSNSpectrumPlot* = 0);
34  };
35 
36  void get_plot_array(const Archive *data, float *array);
37 
38  };
39 
40 }
41 
42 #endif
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: DynamicSNSpectrumPlot.C:23
float get_snr(const Profile *profile)
Return the signal to noise ratio based on the shift.
Definition: StandardSNR.C:17
The primary interface to pulsar observational data.
Definition: Archive.h:45
DynamicSNSpectrumPlot()
Default constructor.
Definition: DynamicSNSpectrumPlot.C:15
Archive * total(bool tscrunch=true) const
Return pointer to a new fscrunched, tscrunched and pscrunched clone.
Definition: Archive_total.C:19
Plot pulsar signal-to-noise ratio as a func of time and freq.
Definition: DynamicSNSpectrumPlot.h:22
void set_standard(const Profile *profile)
Set the standard against which the S/N will be calculated.
Definition: StandardSNR.C:11
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
~DynamicSNSpectrumPlot()
Default constructor.
Definition: DynamicSNSpectrumPlot.C:19
void get_plot_array(const Archive *data, float *array)
Derived classes must fill in the nsubint by nchan data array.
Definition: DynamicSNSpectrumPlot.C:29
Calculates the signal-to-noise ratio by fitting against a standard.
Definition: StandardSNR.h:27

Generated using doxygen 1.8.17