<div dir="ltr">Uh... my bad, I miss-read the details. You are right, it's a rainfall per hour rate.<div><br></div><div>I think a pre-filter script to convert your hourly rate back into a counter before feeding it to rrd would be the best option. A little python scripting would probably do it pretty easily.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 June 2017 at 09:07, Alex van den Bogaerdt <span dir="ltr"><<a href="mailto:alex@vandenbogaerdt.nl" target="_blank">alex@vandenbogaerdt.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> A far simpler solution is; it's just a counter that resets every hour.<br>
<br>
</span>No it's not.<br>
<br>
>> > 011111244445678888889998767777<wbr>765555553444335888889899987677<br>
>> > 010000120001121000121000012000<wbr>110000010100012300011010001210<br>
------------<br>
------------<br>
<br>
Look approximately halfway: 98767<br>
Then look below: 00012<br>
<br>
The "counter" goes from 7 to 6, as a result of rainfall 1 being added and<br>
2 being removed from the window.<br>
<br>
If you treat this as a counter being reset every hour, you would get<br>
negative rainfall, or counter overflow with the resulting huge flood, or<br>
rates becoming unknown because of sanity checks.<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Donovan Baarda <<a href="mailto:abo@minkirri.apana.org.au" target="_blank">abo@minkirri.apana.org.au</a>></div>
</div>