nidas v1.2.3
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
32class TimetagAdjuster;
33
34namespace nidas { namespace dynld { namespace isff {
35
39class ATIK_Sonic: public Wind3D
40{
41public:
42
43 ATIK_Sonic();
44
46
47 void parseParameters();
48
49 void checkSampleTags();
50
51 bool process(const nidas::core::Sample* samp,std::list<const nidas::core::Sample*>& results);
52
58
66 void removeShadowCorrection(nidas::core::dsm_time_t tt, float* ) throw();
67
106 static const float GAMMA_R;
107
108private:
109
114
120
125
132
138
155
157
158 // no copying
160
161 // no assignment
163
164};
165
166}}} // namespace nidas namespace dynld namespace isff
167
168#endif
Interface to a data sample.
Definition Sample.h:190
Adjust time tags of fixed delta-T time series to correct for irregular latency in the assignments of ...
Definition TimetagAdjuster.h:45
A class for making sense of data from an ATIK 3D sonic anemometer.
Definition ATIK_Sonic.h:40
~ATIK_Sonic()
Definition ATIK_Sonic.cc:59
static const float GAMMA_R
Conversion factor from speed of sound squared to Kelvin.
Definition ATIK_Sonic.h:106
int _spikeIndex
If user requests despike variables, e.g.
Definition ATIK_Sonic.h:119
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:185
float _diagThreshold
If the fraction of all missing counts is above this value, then all output wind values are flagged.
Definition ATIK_Sonic.h:137
int _numOut
Requested number of output wind variables.
Definition ATIK_Sonic.h:113
nidas::core::TimetagAdjuster * _ttadjust
Definition ATIK_Sonic.h:156
int _cntsIndex
If user requests output of counts values from sonic.
Definition ATIK_Sonic.h:124
bool process(const nidas::core::Sample *samp, std::list< const nidas::core::Sample * > &results)
Definition ATIK_Sonic.cc:215
void checkSampleTags()
Check the SampleTags that are defined for this sensor.
Definition ATIK_Sonic.cc:108
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(const ATIK_Sonic &x)
int _expectedCounts
The sonic can output the number of high-rate samples that passed its internal checks.
Definition ATIK_Sonic.h:131
ATIK_Sonic()
Definition ATIK_Sonic.cc:47
void transducerShadowCorrection(nidas::core::dsm_time_t tt, float *uvwt)
Apply the path shadow correction and described in the comments for _maxShadowAngle,...
Definition ATIK_Sonic.cc:157
float _maxShadowAngle
Maximum angle of transducer shadow (aka flow distortion) corrections.
Definition ATIK_Sonic.h:154
A class for performing the common processes on wind data from a 3D sonic anemometer.
Definition Wind3D.h:50
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:62
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31