57
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];
// 8 temperature/humidity sensors
WSPC_T_F_DRUCK t_f_d[8];
// 8 temp./humidity/pressure sensors
WSPC_WIND wind;
// Wind sensor
WSPC_REGEN regen;
// Rainfall sensor
} WSPC_DATEN;
// Dataset structure
#pragma pack(1)
// All following data is byte-aligned
typedef struct
{
short temp;
unsigned char feuchte;
unsigned char flag;
} WSPC_TEMP_FEUCHTE;
// Structure to record data from external sensors
typedef struct
{
short druck;
short temp;
unsigned char feuchte;
unsigned char flag;
} WSPC_T_F_DRUCK;
// Structure to record data from external sensors
with pressure
Содержание WS-2010
Страница 1: ...1 PC Radio Weather Station Operating and Evaluation Software for Windows 95 98 NT ...
Страница 7: ...7 Chapter 1 Introduction ...
Страница 14: ...14 ...
Страница 15: ...15 Chapter 2 Commissioning ...
Страница 24: ...24 ...
Страница 25: ...25 Chapter 3 File ...
Страница 31: ...31 Chapter 4 Display ...
Страница 36: ...36 ...
Страница 37: ...37 Chapter 5 Weather Display ...
Страница 39: ...39 Chapter 6 Interface ...
Страница 43: ...43 Chapter 7 View ...
Страница 47: ...47 Chapter 8 Windows ...
Страница 49: ...49 Chapter 9 Buttons ...