Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation of rain amount in mm is not correct #1

Open
oochiewallie opened this issue Jul 15, 2024 · 0 comments
Open

Calculation of rain amount in mm is not correct #1

oochiewallie opened this issue Jul 15, 2024 · 0 comments

Comments

@oochiewallie
Copy link

Buienradar is saying this:

"Use the following formula to convert to precipitation intensity in the unit millimeter per hour (mm/h):
Precipitation intensity = 10^((value-109)/32)
To check: a value of 77 is equal to a precipitation intensity of 0.1 mm/h."

Source: https://www.buienradar.nl/overbuienradar/gratis-weerdata

So, the calculation should be:

RainfallIndex == 0 ? 0 : Math.Pow(10.0, (RainfallIndex - 109.0) / 32.0)

Instead of:

RainfallIndex == 0 ? 0 : Math.Pow(10.0, (RainfallIndex - 108.8805792) / 73.67120307)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant