BPSRUnpacker.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // dspsr/Kernel/Formats/bpsr/dsp/BPSRUnpacker.h
10 
11 #ifndef __BPSRUnpacker_h
12 #define __BPSRUnpacker_h
13 
14 #include "dsp/HistUnpacker.h"
15 
16 namespace dsp
17 {
18 
20  class BPSRUnpacker : public HistUnpacker
21  {
22 
23  public:
24 
26  BPSRUnpacker (const char* name = "BPSRUnpacker");
27 
28  protected:
29 
31  virtual void unpack ();
32 
34  virtual bool get_order_supported (TimeSeries::Order) const;
35 
37  virtual void set_output_order (TimeSeries::Order);
38 
40  virtual bool matches (const Observation* observation);
41 
42  unsigned get_output_ichan (unsigned idig) const;
43  unsigned get_output_ipol (unsigned idig) const;
44 
45 
46  };
47 
48 }
49 
50 #endif // !defined(__BPSRUnpacker_h)
unsigned get_output_ipol(unsigned idig) const
Definition: BPSRUnpacker.C:51
Bit unpacker that keeps a histogram and optimal statistics.
Definition: HistUnpacker.h:25
Contains all Baseband Data Reduction Library classes.
Definition: ASCIIObservation.h:17
unsigned get_ndim() const
Return the dimension of each datum.
Definition: Observation.h:80
unsigned get_output_ichan(unsigned idig) const
Definition: BPSRUnpacker.C:57
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
Order
Order of the dimensions.
Definition: TimeSeries.h:39
std::string name
Operation name.
Definition: Operation.h:153
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 bool get_order_supported(TimeSeries::Order) const
Return true; support any output order.
Definition: BPSRUnpacker.C:21
virtual void set_output_order(TimeSeries::Order)
Set the order of the dimensions in the output TimeSeries.
Definition: BPSRUnpacker.C:27
BPSRUnpacker(const char *name="BPSRUnpacker")
Constructor.
Definition: BPSRUnpacker.C:16
virtual bool matches(const Observation *observation)
Return true if we can convert the Observation.
Definition: BPSRUnpacker.C:32
std::string get_machine() const
Return the instrument used to record signal.
Definition: Observation.h:194
@ OrderFPT
Frequency, Polarization, Time (default before 3 October 2008)
Definition: TimeSeries.h:47
@ OrderTFP
Time, Frequency, Polarization (better for many things)
Definition: TimeSeries.h:50
virtual void unpack()
The unpacking routine.
Definition: BPSRUnpacker.C:62

Generated using doxygen 1.8.17