-
Notifications
You must be signed in to change notification settings - Fork 0
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
39 add overschrijding hydra statistics #106
Conversation
Add station data
Stations data
Geometries code
…overschrijding-hydra-statistics
Change in process code
Plotting stations with KWK_getcheckdata.py
Adding stations data
Updating tables to avoid string symbols error
Update KWK_proces.py with functions to read Hydra-NL data. This is working for HOEKVHLD only.
Update KWK_proces.py with functions to read Hydra-NL data. This is working for all the stations with Hydra-NL data.
Updating code KWK_process.py code to work with multiple stations
Adding all the Hydra-NL station list to the code
Cleaning repository
Adding station files in .csv format.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
- Coverage 87.97% 87.96% -0.02%
==========================================
Files 9 9
Lines 1156 1155 -1
==========================================
- Hits 1017 1016 -1
Misses 139 139 ☔ View full report in Codecov by Sentry. |
Thanks for this PR, I do have some additional requests:
|
Adressing @veenstrajelmer requests.
|
…ckdata.py. Removing files from the repository and removing changes in KWK_getcheckdata.py.
I have looked into reading this old xls format and found this solution that works: import pandas as pd
file_xls = r"p:\11210325-005-kenmerkende-waarden\work\data_hydraNL\DENHDR.xls"
df = pd.read_table(file_xls, encoding='latin-1') |
…ing='latin-1') function. Change to read the .xls files with df = pd.read_table(file_xls, encoding='latin-1') function. Creating .csv and reading them is not anymore needed.
A new commit including df = pd.read_table(file_xls, encoding='latin-1') was created. Now we are able to read the original Hydra-NL files in .xls format. |
Thanks for the updates! I have now looked into |
Integrating validation data. A message indicating if the path existed or not can be good to implement to inform the users if the plots integrated Hydra-NL data or validation data.
Taking back temporal changes for testing plot function in KWK_getcheckdata.py
|
Quality Gate passedIssues Measures |
I have mainly modified KWK_process.py. I have added a function called set_hydra_nl_table() to set the Hydra-NL original tables into the dist_vali_exc dict dictionary. The set_table() function was also added to set validation data and the old exceedance frequency Hydra-NL function.
The pull request also includes the tables generated in Hydra-NL in .xls and .csv format for the stations available + Hydra-NL documentation.
The pull request has two jupyter notebooks, the first one called geometries was used KWK_geometries.ipynb was used to calculate the stations locations. However, this code is not working anymore after the changes made in the main source code for me. The same error is shown when running KWK_getcheckdata.py from this branch and from the main branch. Something to check later on to be sure there is no problem with the environments.
The second jupyter notebook KWK_process.ipynb can be ignored and not included in the main branch, as I only used it for testing purposes. I would like to keep the code anyway if possible in the main branch for future development.