GUPPITwoBitCorrectionComplex.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2017 by Paul Demorest
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __GUPPITwoBitCorrectionComplex_h
10 #define __GUPPITwoBitCorrectionComplex_h
11 
12 #include "dsp/SubByteTwoBitCorrection.h"
13 
14 namespace dsp {
15 
17  class GUPPITwoBitCorrectionComplex: public SubByteTwoBitCorrection {
18 
19  public:
20 
23 
25  virtual bool matches (const Observation* observation);
26 
27  //unsigned get_ndim_per_digitizer () const;
28  unsigned get_ndig_per_byte () const;
29  unsigned get_output_ichan (unsigned idig) const;
30  unsigned get_output_ipol (unsigned idig) const;
31  unsigned get_input_offset (unsigned idig) const;
32  unsigned get_input_incr () const;
33  unsigned get_shift (unsigned idig, unsigned isamp) const;
34 
35  };
36 
37 }
38 
39 #endif
virtual bool matches(const Observation *observation)
Return true if GUPPITwoBitCorrection can convert the Observation.
Definition: GUPPITwoBitCorrectionComplex.C:10
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
unsigned get_output_ichan(unsigned idig) const
Get the output frequency channel for the given digitizer;.
Definition: GUPPITwoBitCorrectionComplex.C:54
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
unsigned get_shift(unsigned idig, unsigned isamp) const
Return the bit shift for the given digitizer and the given sample.
Definition: GUPPITwoBitCorrectionComplex.C:67
unsigned get_input_offset(unsigned idig) const
Return the offset (number of bytes) into input for the given digitizer.
Definition: GUPPITwoBitCorrectionComplex.C:43
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
GUPPITwoBitCorrectionComplex()
Constructor initializes base class atributes.
Definition: GUPPITwoBitCorrectionComplex.C:19
unsigned get_output_ipol(unsigned idig) const
Get the output polarization for the given digitizer.
Definition: GUPPITwoBitCorrectionComplex.C:60
Reference::To< TwoBitTable > table
Two-bit conversion table generator.
Definition: TwoBitCorrection.h:96
Look-up table for converting 2-bit digitized to floating point numbers.
Definition: TwoBitTable.h:25
unsigned get_ndig_per_byte() const
Get the number of digitizer outputs in one byte.
Definition: GUPPITwoBitCorrectionComplex.C:38
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
unsigned get_input_incr() const
Return the offset to the next byte of input data.
Definition: GUPPITwoBitCorrectionComplex.C:49
Converts BitSeries data from two-bit digitized to floating-point values.
Definition: SubByteTwoBitCorrection.h:29

Generated using doxygen 1.8.17