ASPUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/asp/dsp/ASPUnpacker.h
10 
11 #ifndef __ASPUnpacker_h
12 #define __ASPUnpacker_h
13 
14 #include "dsp/HistUnpacker.h"
15 
16 namespace dsp {
17 
19  class ASPUnpacker : public HistUnpacker {
20 
21  public:
22 
24  ASPUnpacker (const char* name = "ASPUnpacker");
25 
26  protected:
27 
29  virtual void unpack ();
30 
32  virtual bool matches (const Observation* observation);
33 
34  unsigned get_output_offset (unsigned idig) const;
35  unsigned get_output_ipol (unsigned idig) const;
36 
37  };
38 
39 }
40 
41 #endif // !defined(__ASPUnpacker_h)
virtual void unpack()
The unpacking routine.
Definition: ASPUnpacker.C:47
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: ASPUnpacker.C:27
Bit unpacker that keeps a histogram and optimal statistics.
Definition: HistUnpacker.h:25
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
virtual void set_ndig(unsigned ndig)
Set the number of digitizers (histograms)
Definition: HistUnpacker.C:64
unsigned get_output_offset(unsigned idig) const
Definition: ASPUnpacker.C:36
unsigned get_nbit() const
Return the number of bits per value.
Definition: Observation.h:95
bool swap_poln() const
Polns need to be swapped.
Definition: PdevFile.h:56
std::string name
Operation name.
Definition: Operation.h:153
bool swap_dim() const
I/Q need to be swapped.
Definition: PdevFile.h:59
Stores information about digital, band-limited, time-varying signals.
Definition: Observation.h:33
unsigned get_output_ipol(unsigned idig) const
Definition: ASPUnpacker.C:42
PdevFile reads baseband data from the Mock Spectrometers at Arecibo.
Definition: PdevFile.h:42
ASPUnpacker(const char *name="ASPUnpacker")
Constructor.
Definition: ASPUnpacker.C:21
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
virtual void set_nstate(unsigned nstate)
Set the number of states in the histogram.
Definition: HistUnpacker.C:88

Generated using doxygen 1.8.17