Data Query Language

The Data Query Language is a simple language to query summarized (hourly, daily...) meteorological data from stations. The structure of a query is:

$fieldA[, $fieldB ...] from $table $interval_expr [if $condition_expr]

Summarized fields

Summarized fields are directly related to data emitted by the station with a simple aggregation applied afterwards. The complete list of fields is:

FieldDescriptionType
t.in.max.dtMaximum interior temperature (Date)datetime
t.in.min.dtMinimum interior temperature (Date)datetime
h.in.max.dtMaximum interior humidity (Date)datetime
h.in.min.dtMinimum interior humidity (Date)datetime
rate.max.dtMaximum rain rate (Date)datetime
dew.max.dtMaximum dewpoint (Date)datetime
dew.min.dtMinimum dewpoint (Date)datetime
bar.max.dtMaximum barometer (Date)datetime
bar.min.dtMinimum barometer (Date)datetime
wc.min.dtMinimum windchill (Date)datetime
hi.max.dtMaximum heat index (Date)datetime
t.max.dtMaximum temperature (Date)datetime
t.min.dtMinimum temperature (Date)datetime
t.in.maxMaximum interior temperaturedouble
t.in.avgAverage interior temperaturedouble
t.in.minMinimum interior temperaturedouble
h.max.dtMaximum humidity (Date)datetime
h.min.dtMinimum humidity (Date)datetime
h.in.maxMaximum interior humiditydouble
h.in.avgAverage interior humiditydouble
h.in.minMinimum interior humiditydouble
rate.maxMaximum rain ratedouble
dew.maxMaximum dewpointdouble
dew.avgAverage dewpointdouble
dew.minMinimum dewpointdouble
bar.maxMaximum barometerdouble
bar.avgAverage barometerdouble
bar.minMinimum barometerdouble
gust.dtMaximum wind gust (Date)datetime
t.amplTemperature amplitude (T.max-T.min)double
wc.avgAverage windchilldouble
wc.minMinimum windchilldouble
hi.maxMaximum heat indexdouble
hi.avgAverage heat indexdouble
t.maxMaximum temperaturedouble
t.avgAverage temperaturedouble
t.minMinimum temperaturedouble
h.maxMaximum humiditydouble
h.avgAverage humiditydouble
h.minMinimum humiditydouble
windAverage wind speeddouble
gustMaximum wind gustdouble
rainTotal raindouble
rateAverage rain ratedouble

Tables

All the tables contain the same kind of information, but summarized into different date ranges:

Table
hourly
daily
monthly

Interval expression

An interval expression defines the range of time the data will be queried. There are several predefined intervals:

Condition expression

A condition enables the filtering of the data in the given interval. The structure of a condition is the following:

$field $operator $value