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
17namespace Pulsar {
18
20
23 class ZapExtend : public Transformation<Archive>
24 {
25
26 public:
27
28 ZapExtend();
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
63
66
67 bool report;
68 };
69
70}
71
72#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
Algorithms that modify data in the Container.
Definition Transformation.h:20
float get_freq_cutoff() const
Get the cutoff for freq-direction.
Definition ZapExtend.h:51
float time_cutoff
threshold for time-direction
Definition ZapExtend.h:62
void transform(Archive *)
Defined by derived classes.
Definition ZapExtend.C:49
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition ZapExtend.C:19
bool get_report() const
Get flag to print a one-line report.
Definition ZapExtend.h:57
void set_freq_cutoff(float t)
Set the cutoff for freq-direction.
Definition ZapExtend.h:48
void set_report(bool flag=true)
Set flag to print a one-line report.
Definition ZapExtend.h:54
float freq_cutoff
threshold for freq-direction
Definition ZapExtend.h:65
void set_time_cutoff(float t)
Set the cutoff for time-direction.
Definition ZapExtend.h:42
float get_time_cutoff() const
Get the cutoff for time-direction.
Definition ZapExtend.h:45
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0