Project

General

Profile

Feature #7527

Give an option to resample data for graphs (eg. rain gauge)

Added by Philippe May almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/02/2019
Due date:
% Done:

0%

Close

Description

Auro orchard automatic raingauge gives data every 10 minutes, to be matched with 1 day for the other rain gauges.

=> provide a generic solution for giving options for graphs, eventually controlled by the GUI


Related issues

Related to Gisaf - Feature #3472: Weather station graphs: choice of parameters Resolved 07/01/2017

Associated revisions

Revision fa059067 (diff)
Added by Philippe May almost 6 years ago

Refs #7527: resample option for levels (WIP)

Revision 5fdefe73 (diff)
Added by Philippe May almost 6 years ago

Refs #7527: fix typo

Revision 5f60b83f (diff)
Added by Philippe May over 5 years ago

Refs #7527: add TimePlottableModel base class, refactor code using pandas for fetching data from the db with resampling capabilities, change get_model_levels in api internals to use it, add a menu in the plot info UI

Revision 93e349f8 (diff)
Added by Philippe May over 5 years ago

Refs #7527: use TimePlottableModel for RainGauge, Well and WeatherStation levels

History

#1 Updated by Philippe May over 5 years ago

  • Related to Feature #3472: Weather station graphs: choice of parameters added

#2 Updated by Philippe May over 5 years ago

  • Status changed from New to Resolved

There's a new drop-down menu (below the plots) for levels, that allows resampling by time, by hour, day, week, month, or year.

Note that the "aggregation" method to resample depends on the kind of value: eg. average for well levels, and sum for rain gauges.

Confused? It's actually very logical, i can explain ;)

Note finally that there's a currently an issue with the rain gauges (because they have multiple "levels"), which relates to a pending ticket: #3472.

Also available in: Atom PDF