Aggregates river info and prints (with nice colours) to the terminal.
Completely unnecessary.
This turns out to be amazing. Full docs here.
Lock/Gauge | ID | RLOI (river level on the internet) ID | Info link |
---|---|---|---|
Farmoor | 1100TH | 7047 | Link |
Sutton Courtenay | 1800TH | 7084 | Link |
Osney | 1303TH | 7057 | Link |
Iffley | 1501TH | 7072 | Link |
Sandford | 1502TH | 7405 | Link |
All the instantaneous info is available on the overview pages linked above but it is possible to get more fine g.rained info (or just return pages with only the information you want on them).
For example, there is stageScale
and downstageScale
(i.e. up and down stream), so e.g. for Osney we have
To e.g. get the flow rate from Farmoor we can look here.
Following the calculations of Anu Dudhia
Flow rate F [m3/s] is estimated from F = 100 ( OD - IU - 2.07 )
where OD and IU are the Osney Downstream and Iffley Upstream measurements (in metres).
The number 2.07 is chosen to give approx zero flow for the OD-IU measurements during dry summer conditions (this ought to match the nominal altitude difference 2.15m between the two locks, but this gives 'negative' flow). The factor 100 is chosen to convert to a flow rate which approximately matches the geometric average of the nearest Thames flow meters which are about 10 miles upstream (Farmoor) and 10 miles dowstream (Sutton Courtenay).
Unfortunately Sutton Courtenay appears to have broken in November. We can probably work out something sensible from the EA archive if needs be.