S2TwoBitCorrection.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2002 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/s2/dsp/S2TwoBitCorrection.h
10 
11 #ifndef __S2TwoBitCorrection_h
12 #define __S2TwoBitCorrection_h
13 
14 class S2TwoBitCorrection;
15 
16 #include "dsp/TwoBitCorrection.h"
17 #include "tempo++.h"
18 
19 namespace dsp {
20 
23 
24  public:
25 
27  S2TwoBitCorrection (char telescope = '7');
28 
30  virtual bool matches (const Observation* observation);
31 
32  protected:
33 
35  void unpack ();
36 
38  void match (const Observation* observation);
39 
41  void match (char telescope);
42 
45 
47  double resynch_start;
48 
50  double resynch_end;
51 
52  };
53 
54 }
55 
56 #endif
double resynch_end
End time of data resynch.
Definition: S2TwoBitCorrection.h:50
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
double resynch_start
Start time of data resynch.
Definition: S2TwoBitCorrection.h:47
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
S2TwoBitCorrection(char telescope='7')
Construct based on the telescope at which the data was recorded.
Definition: S2TwoBitCorrection.C:23
Look-up tables for conversion from S2 two-bit to floating point numbers.
Definition: S2TwoBitTable.h:29
virtual bool matches(const Observation *observation)
Return true if S2TwoBitCorrection can convert the Observation.
Definition: S2TwoBitCorrection.C:14
double resynch_period
Interval in seconds between data resynch of S2-DAS.
Definition: S2TwoBitCorrection.h:44
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
std::string get_telescope() const
Return the telescope name.
Definition: Observation.h:112
Converts BitSeries data from two-bit digitized to floating-point values.
Definition: TwoBitCorrection.h:39
void unpack()
Unpacking interface.
Definition: S2TwoBitCorrection.C:92
Converts S2 data from 2-bit digitized to floating point values.
Definition: S2TwoBitCorrection.h:22
void unpack()
Unpack using dig_unpack.
Definition: ExcisionUnpacker.C:178
void match(const Observation *observation)
Match the unpacking scheme to the Observation.
Definition: S2TwoBitCorrection.C:31
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194

Generated using doxygen 1.8.17