nidas v1.2.3
CSI_IRGA_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_CSI_IRGA_SONIC_H
28#define NIDAS_DYNLD_ISFF_CSI_IRGA_SONIC_H
29
30#include "CSAT3_Sonic.h"
31
32#include <nidas/Config.h>
35
36class TimetagAdjuster;
37
38namespace nidas { namespace dynld { namespace isff {
39
45{
46public:
47
49
51
52 void open(int flags);
53
54 void parseParameters();
55
56 void checkSampleTags();
57
58 bool process(const Sample* samp,std::list<const Sample*>& results);
59
63 static unsigned short signature(const unsigned char* buf, const unsigned char* eob);
64
65private:
66
68
69 bool reportBadCRC();
70
74 unsigned int _numOut;
75
89
93 unsigned int _badCRCs;
94
100
107
112
117
119
122
125
126};
127
128}}} // namespace nidas namespace dynld namespace isff
129
130#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 VariableIndex associates a Variable pointer with it's index into it's SampleTag.
Definition VariableIndex.h:52
A class for making sense of data from a Campbell Scientific Inc CSAT3 3D sonic anemometer.
Definition CSAT3_Sonic.h:46
A class for making sense of data from a Campbell Scientific IRGASON integrated Gas Analyzer and 3D so...
Definition CSI_IRGA_Sonic.h:45
bool _binary
Campbell has provided custom firmware on the EC100 logger box so that it can generate binary values (...
Definition CSI_IRGA_Sonic.h:106
static unsigned short signature(const unsigned char *buf, const unsigned char *eob)
Calculate the CRC signature of a data record.
Definition CSI_IRGA_Sonic.cc:162
void checkSampleTags()
Check the SampleTags that are defined for this sensor.
Definition CSI_IRGA_Sonic.cc:100
int _timeDelay
Filter time delay, depends on the selected bandwidth.
Definition CSI_IRGA_Sonic.h:88
~CSI_IRGA_Sonic()
Definition CSI_IRGA_Sonic.cc:60
unsigned int _numOut
Requested number of output variables.
Definition CSI_IRGA_Sonic.h:74
const nidas::util::EndianConverter * _converter
Converter for binary values.
Definition CSI_IRGA_Sonic.h:116
VariableIndex _Pirga
Definition CSI_IRGA_Sonic.h:98
VariableIndex _Tirga
Definition CSI_IRGA_Sonic.h:99
unsigned int _badCRCs
Counter of the number of records with incorrect CRC signatures.
Definition CSI_IRGA_Sonic.h:93
bool process(const Sample *samp, std::list< const Sample * > &results)
Process a raw sample, which in this case means do a sscanf on the character string contents,...
Definition CSI_IRGA_Sonic.cc:190
CSI_IRGA_Sonic(const CSI_IRGA_Sonic &)
No copying.
CSI_IRGA_Sonic & operator=(const CSI_IRGA_Sonic &)
No assignment.
nidas::core::TimetagAdjuster * _ttadjust
Definition CSI_IRGA_Sonic.h:118
void parseParameters()
Parse the list of nidas::core::Parameter that are associated with this sensor.
Definition CSI_IRGA_Sonic.cc:73
bool reportBadCRC()
Definition CSI_IRGA_Sonic.cc:182
VariableIndex _h2o
Definition CSI_IRGA_Sonic.h:96
nidas::core::VariableIndex VariableIndex
Definition CSI_IRGA_Sonic.h:67
VariableIndex _co2
Definition CSI_IRGA_Sonic.h:97
void open(int flags)
Open the serial port connected to this sonic.
Definition CSI_IRGA_Sonic.cc:68
CSI_IRGA_Sonic()
Definition CSI_IRGA_Sonic.cc:43
VariableIndex _irgaDiag
Definition CSI_IRGA_Sonic.h:95
nidas::util::EndianConverter::endianness _endian
Endian-ness of binary values.
Definition CSI_IRGA_Sonic.h:111
Virtual base class declaring methods for converting numeric values between little-endian and big-endi...
Definition EndianConverter.h:304
endianness
Definition EndianConverter.h:309
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31