Give an option to resample data for graphs (eg. rain gauge)
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
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
#2 Updated by Philippe May over 4 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.