nidas  v1.2-1520
ATIK_Sonic.h
Go to the documentation of this file.
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2 // vim: set shiftwidth=4 softtabstop=4 expandtab:
3 /*
4  ********************************************************************
5  ** NIDAS: NCAR In-situ Data Acquistion Software
6  **
7  ** 2012, Copyright University Corporation for Atmospheric Research
8  **
9  ** This program is free software; you can redistribute it and/or modify
10  ** it under the terms of the GNU General Public License as published by
11  ** the Free Software Foundation; either version 2 of the License, or
12  ** (at your option) any later version.
13  **
14  ** This program is distributed in the hope that it will be useful,
15  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  ** GNU General Public License for more details.
18  **
19  ** The LICENSE.txt file accompanying this software contains
20  ** a copy of the GNU General Public License. If it is not found,
21  ** write to the Free Software Foundation, Inc.,
22  ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  **
24  ********************************************************************
25 */
26 
27 #ifndef NIDAS_DYNLD_ISFF_ATIK_SONIC_H
28 #define NIDAS_DYNLD_ISFF_ATIK_SONIC_H
29 
30 #include "Wind3D.h"
31 
32 class TimetagAdjuster;
33 
34 namespace nidas { namespace dynld { namespace isff {
35 
39 class ATIK_Sonic: public Wind3D
40 {
41 public:
42 
43  ATIK_Sonic();
44 
45  ~ATIK_Sonic();
46 
47  void parseParameters()
49 
50  void checkSampleTags()
52 
53  bool process(const nidas::core::Sample* samp,std::list<const nidas::core::Sample*>& results)
54  throw();
55 
60  void transducerShadowCorrection(nidas::core::dsm_time_t tt, float* uvwt) throw();
61 
69  void removeShadowCorrection(nidas::core::dsm_time_t tt, float* ) throw();
70 
109  static const float GAMMA_R;
110 
111 private:
112 
116  int _numOut;
117 
123 
128 
135 
141 
158 
160 
161  // no copying
162  ATIK_Sonic(const ATIK_Sonic& x);
163 
164  // no assignment
165  ATIK_Sonic& operator=(const ATIK_Sonic& x);
166 
167 };
168 
169 }}} // namespace nidas namespace dynld namespace isff
170 
171 #endif
A class for performing the common processes on wind data from a 3D sonic anemometer.
Definition: Wind3D.h:49
int _spikeIndex
If user requests despike variables, e.g.
Definition: ATIK_Sonic.h:122
static const float GAMMA_R
Conversion factor from speed of sound squared to Kelvin.
Definition: ATIK_Sonic.h:109
long long dsm_time_t
Posix time in microseconds, the number of non-leap microseconds since 1970 Jan 1 00:00 UTC...
Definition: Sample.h:61
nidas::core::TimetagAdjuster * _ttadjust
Definition: ATIK_Sonic.h:159
int _expectedCounts
The sonic can output the number of high-rate samples that passed its internal checks.
Definition: ATIK_Sonic.h:134
Adjust time tags of fixed delta-T time series to correct for irregular latency in the assignments of ...
Definition: TimetagAdjuster.h:45
ATIK_Sonic & operator=(const ATIK_Sonic &x)
void parseParameters()
Parse the list of nidas::core::Parameter that are associated with this sensor.
Definition: ATIK_Sonic.cc:67
ATIK_Sonic()
Definition: ATIK_Sonic.cc:47
int _numOut
Requested number of output wind variables.
Definition: ATIK_Sonic.h:116
void checkSampleTags()
Check the SampleTags that are defined for this sensor.
Definition: ATIK_Sonic.cc:109
~ATIK_Sonic()
Definition: ATIK_Sonic.cc:59
Interface to a data sample.
Definition: Sample.h:189
float _maxShadowAngle
Maximum angle of transducer shadow (aka flow distortion) corrections.
Definition: ATIK_Sonic.h:157
void transducerShadowCorrection(nidas::core::dsm_time_t tt, float *uvwt)
Apply the path shadow correction and described in the comments for _maxShadowAngle, and _shadowFactor.
Definition: ATIK_Sonic.cc:160
void removeShadowCorrection(nidas::core::dsm_time_t tt, float *)
Placeholder for a method to remove a shadow correction that had been applied by the sonic firmware...
Definition: ATIK_Sonic.cc:188
int _cntsIndex
If user requests output of counts values from sonic.
Definition: ATIK_Sonic.h:127
bool process(const nidas::core::Sample *samp, std::list< const nidas::core::Sample * > &results)
Definition: ATIK_Sonic.cc:218
A class for making sense of data from an ATIK 3D sonic anemometer.
Definition: ATIK_Sonic.h:39
Definition: InvalidParameterException.h:35
float _diagThreshold
If the fraction of all missing counts is above this value, then all output wind values are flagged...
Definition: ATIK_Sonic.h:140