Download Wakasa Database User's Guide
Transcript
CONTENTS Wakasa Database User’s Guide Contents 1 Introduction 4 2 Accessing data in the database 4 2.1 Wakasa database structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2 Data tables and parameter tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.3 Common columns in all data tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.4 SQL language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.5 Differences between the standard and array version . . . . . . . . . . . . . . . . . . 9 2.6 PostgreSQL interactive terminal psql . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.7 Graphical database browsers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3 The visualization tools 11 3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.2 Configuration file plotter.conf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.3 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.3.1 Obligatory command line parameters . . . . . . . . . . . . . . . . . . . . . 14 3.3.2 Optional command line parameters . . . . . . . . . . . . . . . . . . . . . . 15 Details of each plotter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.4.1 Plotbalance.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.4.2 Plotceilo.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.4.3 Plotheatsensor.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4.4 Plotmrr.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4.5 Plotposs.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4.6 Plotradiometer.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.4.7 Plotsonde.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.4.8 Plotvideo.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 3.4.9 Plotweather.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Plotter output examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.4 3.5 4 5 Using the data in external programs 32 4.1 Exporting to other formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 4.2 Accessing data from programming languages . . . . . . . . . . . . . . . . . . . . . 33 Known bugs 33 2