63
Appendix F Data format of weather data
The following information consists of excerpts from the C++ source program,
and aims to clarify the data structure of the weather data file.
The weather data file is a sequential file in which all received data are stored
consecutively in a data record of constant size (WSPC_DATA).
At the beginning, there is a 4 byte integer containing flags: these indicate the
availability of sensors.
Successive data records follow this as they are received from the interface.
Structure of the data record
struct WSPC_DATA
{
time_t
zeit;
WSPC_TEMP_FEUCHTE
temp[9];
// 8 Temp./humidity sensor
WSPC_DRUCK
druck;
// Pressure sensor
WSPC_WIND
wind;
// Wind sensor
WSPC_REGEN
regen;
// Rain sensor
WSPC_HELL_PYR
helligkeit;
// Brightness sensor
WSPC_HELL_PYR
pyrano;
// Pyranometer
};
#pragma pack(1)
// all the following data are byte aligned
struct WSPC_TEMP_HUMIDITY
{
short
temp;
unsigned char
feuchte;
unsigned char
flag;
};
// structure for recording data from the temperature
sensors
struct WSPC_PRESSURE
{
short
druck;
unsigned char
flag;
};
// structure for recording pressure data
Summary of Contents for WS-2510
Page 3: ...3 ...
Page 9: ...9 Chapter 1 Introduction ...
Page 16: ...16 ...
Page 17: ...17 Chapter 2 Starting operation ...
Page 28: ...28 Chapter 3 File menu ...
Page 36: ...36 Chapter 4 Display menu ...
Page 42: ...42 Chapter 5 Weather display menu ...
Page 44: ...44 Chapter 6 Interface menu ...
Page 49: ...49 ...
Page 50: ...50 Chapter 7 View menu ...
Page 75: ...75 ...