Appendix F Weather File Data Format - La Crosse Technology WS-2010 Software Manual

Pc radio weather station operating and evaluation software for windows 95/98/nt
Hide thumbs Also See for WS-2010:
Table of Contents

Advertisement

Appendix F Weather File Data Format

The information below is comprised of extracts from the C++ source program in
order to make the structure of the weather data file more clear.
The weather data file is a sequential file in which all the data received is stored in
succession in one dataset of constant size (WSPC_DATEN).
At the start of the file is a 4-byte integer, containing flags which indicate the
presence of sensors.
This is followed by consecutive datasets as received from the interface.
Dataset structure
typedef struct
{
time_t zeit;
WSPC_TEMP_FEUCHTE t_f[8];
WSPC_T_F_DRUCK
WSPC_WIND
WSPC_REGEN
} WSPC_DATEN;
#pragma pack(1)
typedef struct
{
short temp;
unsigned char feuchte;
unsigned char flag;
} WSPC_TEMP_FEUCHTE;
typedef struct
{
short druck;
short temp;
unsigned char feuchte;
unsigned char flag;
} WSPC_T_F_DRUCK;
t_f_d[8];
wind;
regen;
// Dataset structure
// All following data is byte-aligned
// Structure to record data from external sensors
// Structure to record data from external sensors
with pressure
// 8 temperature/humidity sensors
// 8 temp./humidity/pressure sensors
// Wind sensor
// Rainfall sensor
57

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents