Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated...

19
Calculating statistics in AirBase

Transcript of Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated...

Page 1: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

Calculating statistics in AirBase

Page 2: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

General procedure calculating statistics

A. Calculate aggregated data

B. Calculate statistics

Page 3: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

A.Calculate aggregated data (calc_average)

get_dc

Raw_data

get_rd

calc_max_mc

Max values

data_configuration

calc_avg_mc

averages

AirBase

getrawtable

Table-name

Page 4: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

B.Calculate statistics (calc_statistic)

get_dc

Raw_data

get_rd

calc_stat_mc

statistics

data_configuration

AirBase

getrawtable

Table-name/duration

Stat_period

Stat_period

Max_result

Page 5: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

Annual procedure calculating statistics

1. Calculate aggregated data (daily values, daily maximum running 8-hourly values)

2. Calculate general statistics (mean, maximum, percentiles)

a. data_type in (‘hour’, ‘day’, ‘dymax’)b. other

3. Calculate exceedances4. Calculate N-max values5. Calculate Ozone statistics (AOT, SOMO35)6. Calculate aggregated NOx-data7. Calculate general statistics NOx

Page 6: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

1.Calculate aggregated data (load_average_year)

a. Calculate derived measurements <data_typeB>

b. Load calculated measurements <data_typeB> in AirBase

c. Update timeseries

data_configuration Raw_data_<data_typeA>=(‘hour’, ‘hour8’)

a.calc_average

b.cp_raw_data

c.upd_data_configuration

<data_typeB>=(‘hour8’, ‘day’, ‘dymax’)

Raw_data <data_typeB>

Raw_data_<data_typeB>

Raw_data_day_report

Page 7: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

1a. Calculate derived dymax-measurements(load_average_year)

• Calculate and import running hour8-values

• Update timeseries running hour8-values

• Calculate and import dymax-values

• Update timeseries dymax-values

load_average_year

raw_data_hour

load_average_year

upd_data_configuration dymax

upd_data_con-figuration hour8

Raw_data_dymax

data_configuration

raw_data_hour8

Page 8: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

2a. Calculate general statistics(<data_type> = (hour, day, dymax), load_statistic)

a. Retrieve measurements <data_type> and calculate statistics

b. Load statistics into AirBase

data_configuration Raw_data_<data_type>

b.cp_statistic

statistics <data_type>

Statistic

a.calc_statistic

Page 9: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

2b. Calculate general statistics(<data_type> = (other than hour,day, dymax),

load_statistic_other)

a. Retrieve measurements <data_type> and calculate statistics

b. Load statistics into AirBase

data_configuration Raw_data_<data_type>

b.cp_statistic

statistics <data_type>

Statistic

a.calc_statistic_other

Page 10: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

3. Calculate exceedances(load_statistic_exc)

a. Retrieve measurements <data_type> and calculate exceedances

b. Load exceedances into AirBase

data_configuration Raw_data_<data_type>

b.cp_statistic_exc

exceedances <data_type>

Statistic_exc

a.calc_statistic_exc

Page 11: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

4. Calculate N-max values(load_statistic_max)

a. Retrieve measurements <data_type> and calculate N-max values

b. Load N-max values into AirBase

data_configuration Raw_data_<data_type>

b.cp_statistic_max

N-max values <data_type>

Statistic_max

a.calc_statistic_max

Page 12: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

5. Calculate Ozone statistics(load_statistic_aot)

a. Retrieve measurements <data_type> and calculate AOT/SOMO35

b. Load AOT/SOMO35 into AirBase

data_configuration Raw_data_<data_type>

b.cp_statistic_aot

AOT/SOMO35 <data_type>

Statistic_aot

a.calc_statistic_aot

Page 13: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

6.Determine derived NOx-measurements(cr_vwraw_<rd_type>_nox)

Create a view in which the

NO2-values and NO

(expressed in NO2

-units) are stored from

timeseries in table

meas_configuration_nox.

During retrieval of the NOx-

values the NO- en NO2 values

should be summarized.

meas_configuration_nox

vwaw_data_hour_noxvwraw_data_day_nox

cr_vwraw_data_day_nox

cr_vwraw_data_hour_nox

raw_data_hour

raw_data_day

Page 14: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

7.Calculate NOx-statistics(load_statistic_nox)

a. Retrieve measurements <data_type> and calculate NOX-statistics

b. Load statistics into AirBase

vwmeas_configuration_nox vwraw_data_<data_type>_nox

a.calc_statistic_nox

b.cp_statistic_nox

statistics <data_type>statistic

Page 15: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

Storage measurements in AirBase

Page 16: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

raw_data_hour8

Measurements(general)

Data_configuration

determine timeseries from measurements

raw_data_hourraw_data_dymax

raw_data_other

raw_data_day_report

raw_data_day

determine dymax-values

from hourly values

Determine daily values from hourly values

Mea

s_co

nfig

urat

ion

Page 17: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

Calculate NOx-daily values from NO+NO2-daily values

(NOx= 46/30 * NO + NO2)

NOx measurements

Meas_configuration_nox

Meas_configuration statistic

Determine all stations for which NO as well as NO2 values are stored

vwraw_data_hour_nox

Raw_data_day

vwraw_data_day_nox

Raw_data_hour

Calculate NOx-hourly values

from NO+NO2-hourly values

(NOx= 46/30 * NO + NO2)

Page 18: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

Statistics

Add reported statistics of timeseries for which no measurements are available

raw_data_other

raw_data_dymax

raw_data_hour

raw_data_day

Statistic_aot

Calculate general statistics

Mea

s_co

nfig

urat

ion

Statistic_report

Statistic

Statistic_maxCalculate exceedances

Statistic_exc

Calculate N-max statistics

Calculate AOT/SOMO35 statistics

Page 19: Calculating statistics in AirBase. General procedure calculating statistics A.Calculate aggregated data B.Calculate statistics.

NOx-Statistics

vwraw_data_hour_nox

Calculate general statistics

Mea

s_co

nfig

urat

ion_

nox

Statistic

Statistic_nox

vwraw_data_day_noxremove NOx-statistics for which along with the NOx-values also NO and NO2-values are reported