ZapExtend.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2019 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __Pulsar_ZapExtend_h
10 #define __Pulsar_ZapExtend_h
11 
12 #include "Pulsar/Transformation.h"
13 #include "Pulsar/Archive.h"
14 #include "Pulsar/TimeFrequencySmooth.h"
15 #include "Pulsar/TimeFrequencyMask.h"
16 
17 namespace Pulsar {
18 
20 
23  class ZapExtend : public Transformation<Archive>
24  {
25 
26  public:
27 
29 
30  void transform (Archive*);
31 
34 
35  // Text interface to the ZapExtend class
36  class Interface : public TextInterface::To<ZapExtend> {
37  public:
38  Interface (ZapExtend* = 0);
39  };
40 
42  void set_time_cutoff (float t) { time_cutoff = t; }
43 
45  float get_time_cutoff () const { return time_cutoff; }
46 
48  void set_freq_cutoff (float t) { freq_cutoff = t; }
49 
51  float get_freq_cutoff () const { return freq_cutoff; }
52 
54  void set_report (bool flag = true) { report = flag; }
55 
57  bool get_report () const { return report; }
58 
59  protected:
60 
62  float time_cutoff;
63 
65  float freq_cutoff;
66 
67  bool report;
68  };
69 
70 }
71 
72 #endif
float freq_cutoff
threshold for freq-direction
Definition: ZapExtend.h:75
float time_cutoff
threshold for time-direction
Definition: ZapExtend.h:72
bool get_report() const
Get flag to print a one-line report.
Definition: ZapExtend.h:67
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
void transform(Archive *)
Defined by derived classes.
Definition: ZapExtend.C:51
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
float get_time_cutoff() const
Get the cutoff for time-direction.
Definition: ZapExtend.h:55
unsigned get_nbin() const
Return the number of bins.
Definition: ProfileAmps.h:50
Array of Profiles integrated over the same time interval.
Definition: Integration.h:37
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: ZapExtend.C:18
void set_report(bool flag=true)
Set flag to print a one-line report.
Definition: ZapExtend.h:64
void set_freq_cutoff(float t)
Set the cutoff for freq-direction.
Definition: ZapExtend.h:58
float get_freq_cutoff() const
Get the cutoff for freq-direction.
Definition: ZapExtend.h:61
void set_time_cutoff(float t)
Set the cutoff for time-direction.
Definition: ZapExtend.h:52
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Extend zapped areas in time and/or frequency.
Definition: ZapExtend.h:28

Generated using doxygen 1.8.17