luethi / Discharge_Optical_Measurement

1 stars 0 forks source link

Show more then two digits on discharge.ch as e.g 0.007 m3/s are displayed as 0.00 discharge... #23

Closed naroberto closed 7 years ago

naroberto commented 7 years ago
screen shot 2016-11-03 at 11 28 02 screen shot 2016-11-03 at 11 28 20 screen shot 2016-11-03 at 11 32 48
naroberto commented 7 years ago

Also the same issue with time shift of one hour appears here...

bosnjak commented 7 years ago

Hi @naroberto, thanks for reporting. The precision of 3 digits for measurement seems rather too fine for this purpose, don't you think? Should we go about this by rounding to 2 digits, so in this case we would have 0.01 as a result? @luethi what's your opinion on this? For a system that has a large toleration margin, 3 digits just seems as overkill.

@naroberto about the time shift: the time in the exported CSV is in UTC, and the time you see on the frontend is in your local timezone. I suspect you are in Zurich now? Or at least in the CET zone, which would put you in UTC+1. I hope this helps.

naroberto commented 7 years ago

Hmm not sure because the discharge really varies a lot from site to site. For low discharge the relative error introduced by displaying it like this is very high and looks confusing because 4 l/s will be displayed as zero discharge as in fact 4 l/s or lower occurs sometimes. E.g at Seliani River Sites the discharge is often in the margin of 4-8 l/s (or 0.004-0-008 m3/s) and especially if you round 0.004 down to 0.00 it doesn't look meaningful anymore... of course the real value is still visible when you download the data, but I think something meaningful should also be visible when you click on the web...

screen shot 2016-11-03 at 11 57 02
bosnjak commented 7 years ago

@naroberto right, I didn't think about it like that, I was thinking in terms of much higher flows, but you are right - we definitely need to account for these low flow measurements. @luethi: should we display m3/s when the number is high, and then just switch to L/s when the number is this low? To me it seems better to show 2 L/s than having 0.001 m3/s. What do you guys think?

naroberto commented 7 years ago

Yes I think that would be great and the App is actually already switching to display the result... But it might still be inconvenient if you download a long time series of a site and some discharge is in m3/s and some are in l/s... So for one site measurements should either be in m3/s or in l/s...

bosnjak commented 7 years ago

Can we then agree that the exported data will always be in m3/s, and on the fronted interface we will display m3/s or L/s depending on the value? This makes sense to me because the frontend should be user-friendly, and the export should be machine-friendly.

naroberto commented 7 years ago

Yes, if that's possible - perfect!

bosnjak commented 7 years ago

I've created the ticket on the frontend backlog: https://github.com/luethi/discharge_web_frontend/issues/223

@naroberto if this addresses your concerns, please close this ticket. Thanks!