GenericTwoBitCorrection.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2018 Willem van Straten and Natalia Primak
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Classes/dsp/GenericTwoBitCorrection.h
10 
11 #ifndef __GenericTwoBitCorrection_h
12 #define __GenericTwoBitCorrection_h
13 
14 class GenericTwoBitCorrection;
15 
16 #include "dsp/TwoBitCorrection.h"
17 
18 namespace dsp {
19 
20  class TwoBitTable;
21 
24 
25  public:
26 
29 
31  virtual bool matches (const Observation* observation);
32 
33  unsigned get_output_ipol (unsigned idig) const;
34 
35  unsigned get_output_ichan (unsigned idig) const;
36 
37  unsigned get_output_offset (unsigned idig) const;
38 
39  unsigned get_output_incr () const;
40 
41  unsigned get_input_offset (unsigned idig) const;
42 
43  unsigned get_input_incr () const;
44 
45  };
46 
47 }
48 
49 #endif
virtual bool matches(const Observation *observation)
Return true if GenericTwoBitCorrection can convert the Observation.
Definition: GenericTwoBitCorrection.C:12
unsigned get_input_offset(unsigned idig) const
Get the offset (number of bytes) into input for the given digitizer.
Definition: GenericTwoBitCorrection.C:51
unsigned get_output_ichan(unsigned idig) const
Get the output frequency channel for the given digitizer;.
Definition: GenericTwoBitCorrection.C:37
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
unsigned get_npol() const
Return the number of polarizations.
Definition: Observation.h:90
unsigned get_output_ipol(unsigned idig) const
Get the output polarization for the given digitizer.
Definition: GenericTwoBitCorrection.C:26
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
unsigned get_output_offset(unsigned idig) const
Definition: GenericTwoBitCorrection.C:62
Converts BitSeries data from two-bit digitized to floating-point values.
Definition: TwoBitCorrection.h:39
Converts Generic data from 2-bit digitized to floating point values.
Definition: GenericTwoBitCorrection.h:23
unsigned get_input_incr() const
Get the offset to the next byte containing the current digitizer data.
Definition: GenericTwoBitCorrection.C:56
Reference::To< TwoBitTable > table
Two-bit conversion table generator.
Definition: TwoBitCorrection.h:96
unsigned get_output_incr() const
Definition: GenericTwoBitCorrection.C:71
Look-up table for converting 2-bit digitized to floating point numbers.
Definition: TwoBitTable.h:25
GenericTwoBitCorrection()
Constructor initializes base class attributes.
Definition: GenericTwoBitCorrection.C:18

Generated using doxygen 1.8.17