Appendix F Data Format Of Weather Data - La Crosse Technology WS-2510 Operating Instructions Manual

Pc radio weather station operating and evaluation software for ms windows 95/98/2000/nt/me/xp
Table of Contents

Advertisement

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
WSPC_TEMP_FEUCHTE
WSPC_DRUCK
WSPC_WIND
WSPC_REGEN
WSPC_HELL_PYR
WSPC_HELL_PYR
};
#pragma pack(1)
struct WSPC_TEMP_HUMIDITY
{
short
unsigned char
unsigned char
};
struct WSPC_PRESSURE
{
short
unsigned char
};
zeit;
temp[9];
druck;
wind;
regen;
helligkeit;
pyrano;
temp;
feuchte;
flag;
// structure for recording data from the temperature
sensors
druck;
flag;
// structure for recording pressure data
// 8 Temp./humidity sensor
// Pressure sensor
// Wind sensor
// Rain sensor
// Brightness sensor
// Pyranometer
// all the following data are byte aligned
63

Advertisement

Table of Contents
loading

Table of Contents