Store¶
glofas_ewds.store ¶
Places and their rivers, kept on disk: what the facts and the UI read.
Pure Python and JSON: no network, no NetCDF.
The EWDS needs an account and a queue of minutes, and a public page cannot
wait minutes. So everything that answers a question reads a store: a
folder with one JSON file per place, filled beforehand (glofas-ewds init,
glofas-ewds update) and read as it is. Every piece of data in it carries
where it came from and when it was fetched, so an answer can say how old it is.
A :class:Place holds a town, the river cell found for it
(:func:~glofas_ewds.rivers.nearest_river), the official thresholds of that
cell, the daily history and the last forecast runs, newest last.
Run
dataclass
¶
One forecast run of a node: (member, lead time), the control run first.
Place
dataclass
¶
Store ¶
The places of a data folder, one JSON file each under places/.