FadcTwoBitCorrection.h
1 /***************************************************************************
2  *
3  * Copyright (C) 2006 by Eric Plum
4  * Licensed under the Academic Free License version 2.1
5  *
6  ***************************************************************************/
7 #ifndef __FadcTwoBitCorrection_h
8 #define __FadcTwoBitCorrection_h
9 
10 #include "dsp/SubByteTwoBitCorrection.h"
11 
12 namespace dsp {
13 
15  class FadcTwoBitCorrection: public SubByteTwoBitCorrection {
16 
17  public:
18 
21 
23  virtual bool matches (const Observation* observation);
24 
26  virtual unsigned get_ndig_per_byte () const;
27 
29  virtual unsigned get_output_offset (unsigned idig) const;
30 
32  virtual unsigned get_output_ipol (unsigned idig) const;
33 
35  virtual unsigned get_output_incr () const;
36 
38  virtual unsigned get_shift (unsigned idig, unsigned isamp) const;
39 
41  virtual void match (const Observation* observation);
42  };
43 
44 }
45 
46 #endif
virtual unsigned get_output_ipol(unsigned idig) const
Over-ride the TwoBitCorrection default.
Definition: FadcTwoBitCorrection.C:54
virtual unsigned get_output_incr() const
Over-ride the TwoBitCorrection default.
Definition: FadcTwoBitCorrection.C:48
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
Signal::State get_state() const
Return the state of the signal.
Definition: Observation.h:70
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
FadcTwoBitCorrection()
Constructor initializes base class atributes.
Definition: FadcTwoBitCorrection.C:18
unsigned get_npol() const
Return the number of polarizations.
Definition: Observation.h:90
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
virtual void match(const Observation *observation)
Specialize the Unpacker for the Observation.
Definition: FadcTwoBitCorrection.C:25
virtual bool matches(const Observation *observation)
Return true if FadcTwoBitCorrection can convert the Observation.
Definition: FadcTwoBitCorrection.C:12
Reference::To< TwoBitTable > table
Two-bit conversion table generator.
Definition: TwoBitCorrection.h:96
virtual unsigned get_output_offset(unsigned idig) const
Over-ride the TwoBitCorrection default.
Definition: FadcTwoBitCorrection.C:42
Look-up table for converting 2-bit digitized to floating point numbers.
Definition: TwoBitTable.h:25
virtual unsigned get_shift(unsigned idig, unsigned isamp) const
Over-ride the SubByteTwoBitCorrection default.
Definition: FadcTwoBitCorrection.C:69
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
virtual unsigned get_ndig_per_byte() const
Over-ride the TwoBitCorrection default.
Definition: FadcTwoBitCorrection.C:34
Converts BitSeries data from two-bit digitized to floating-point values.
Definition: SubByteTwoBitCorrection.h:29

Generated using doxygen 1.8.17