mhm-tools 0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. mhm_tools-0.2/.gitignore +154 -0
  2. mhm_tools-0.2/AUTHORS.md +20 -0
  3. mhm_tools-0.2/COPYING +674 -0
  4. mhm_tools-0.2/COPYING.LESSER +165 -0
  5. mhm_tools-0.2/LICENSE.md +48 -0
  6. mhm_tools-0.2/PKG-INFO +99 -0
  7. mhm_tools-0.2/README.md +24 -0
  8. mhm_tools-0.2/pyproject.toml +176 -0
  9. mhm_tools-0.2/src/mhm_tools/__init__.py +31 -0
  10. mhm_tools-0.2/src/mhm_tools/_cli/_2d_map.py +119 -0
  11. mhm_tools-0.2/src/mhm_tools/_cli/__init__.py +5 -0
  12. mhm_tools-0.2/src/mhm_tools/_cli/__main__.py +6 -0
  13. mhm_tools-0.2/src/mhm_tools/_cli/_bankfull.py +84 -0
  14. mhm_tools-0.2/src/mhm_tools/_cli/_calculate_pet.py +94 -0
  15. mhm_tools-0.2/src/mhm_tools/_cli/_create_catchment.py +456 -0
  16. mhm_tools-0.2/src/mhm_tools/_cli/_create_header.py +103 -0
  17. mhm_tools-0.2/src/mhm_tools/_cli/_create_idgauges.py +114 -0
  18. mhm_tools-0.2/src/mhm_tools/_cli/_create_mhm_restart_file.py +294 -0
  19. mhm_tools-0.2/src/mhm_tools/_cli/_create_mhm_restart_from_setup.py +452 -0
  20. mhm_tools-0.2/src/mhm_tools/_cli/_create_subdomain_masks.py +94 -0
  21. mhm_tools-0.2/src/mhm_tools/_cli/_crop_mhm_setup.py +263 -0
  22. mhm_tools-0.2/src/mhm_tools/_cli/_difference.py +165 -0
  23. mhm_tools-0.2/src/mhm_tools/_cli/_discharge_evaluation.py +239 -0
  24. mhm_tools-0.2/src/mhm_tools/_cli/_file_converter.py +105 -0
  25. mhm_tools-0.2/src/mhm_tools/_cli/_fill_nearest.py +80 -0
  26. mhm_tools-0.2/src/mhm_tools/_cli/_gridded_data_evaluation.py +358 -0
  27. mhm_tools-0.2/src/mhm_tools/_cli/_hydrograph.py +117 -0
  28. mhm_tools-0.2/src/mhm_tools/_cli/_landcover_ascii_to_nc.py +119 -0
  29. mhm_tools-0.2/src/mhm_tools/_cli/_latlon.py +180 -0
  30. mhm_tools-0.2/src/mhm_tools/_cli/_link_folder_tree.py +71 -0
  31. mhm_tools-0.2/src/mhm_tools/_cli/_long_term_mean.py +147 -0
  32. mhm_tools-0.2/src/mhm_tools/_cli/_main.py +704 -0
  33. mhm_tools-0.2/src/mhm_tools/_cli/_merge.py +71 -0
  34. mhm_tools-0.2/src/mhm_tools/_cli/_mhm_run_overview.py +80 -0
  35. mhm_tools-0.2/src/mhm_tools/_cli/_prepare_mhm_forcings.py +151 -0
  36. mhm_tools-0.2/src/mhm_tools/_cli/_ratio.py +173 -0
  37. mhm_tools-0.2/src/mhm_tools/_cli/_regrid.py +65 -0
  38. mhm_tools-0.2/src/mhm_tools/_cli/_relative_difference.py +171 -0
  39. mhm_tools-0.2/src/mhm_tools/_cli/_taylor_diagram.py +118 -0
  40. mhm_tools-0.2/src/mhm_tools/_version.py +1 -0
  41. mhm_tools-0.2/src/mhm_tools/common/__init__.py +74 -0
  42. mhm_tools-0.2/src/mhm_tools/common/cli_utils.py +167 -0
  43. mhm_tools-0.2/src/mhm_tools/common/constants.py +76 -0
  44. mhm_tools-0.2/src/mhm_tools/common/esri_grid.py +402 -0
  45. mhm_tools-0.2/src/mhm_tools/common/file_handler.py +1223 -0
  46. mhm_tools-0.2/src/mhm_tools/common/logger.py +216 -0
  47. mhm_tools-0.2/src/mhm_tools/common/metrics/__init__.py +7 -0
  48. mhm_tools-0.2/src/mhm_tools/common/metrics/esp.py +30 -0
  49. mhm_tools-0.2/src/mhm_tools/common/metrics/metrics_handler.py +164 -0
  50. mhm_tools-0.2/src/mhm_tools/common/metrics/mspaef.py +36 -0
  51. mhm_tools-0.2/src/mhm_tools/common/metrics/spaef.py +43 -0
  52. mhm_tools-0.2/src/mhm_tools/common/metrics/tsm.py +160 -0
  53. mhm_tools-0.2/src/mhm_tools/common/metrics/waspaef.py +51 -0
  54. mhm_tools-0.2/src/mhm_tools/common/netcdf.py +420 -0
  55. mhm_tools-0.2/src/mhm_tools/common/plotter.py +261 -0
  56. mhm_tools-0.2/src/mhm_tools/common/provenance.py +51 -0
  57. mhm_tools-0.2/src/mhm_tools/common/resolution_handler.py +187 -0
  58. mhm_tools-0.2/src/mhm_tools/common/time_utils.py +285 -0
  59. mhm_tools-0.2/src/mhm_tools/common/utils.py +571 -0
  60. mhm_tools-0.2/src/mhm_tools/common/xarray_utils.py +542 -0
  61. mhm_tools-0.2/src/mhm_tools/post/2d_map.py +59 -0
  62. mhm_tools-0.2/src/mhm_tools/post/__init__.py +54 -0
  63. mhm_tools-0.2/src/mhm_tools/post/bankfull.py +143 -0
  64. mhm_tools-0.2/src/mhm_tools/post/difference.py +107 -0
  65. mhm_tools-0.2/src/mhm_tools/post/discharge_evaluation.py +2158 -0
  66. mhm_tools-0.2/src/mhm_tools/post/gridded_data_evaluation.py +2675 -0
  67. mhm_tools-0.2/src/mhm_tools/post/hydrograph.py +1560 -0
  68. mhm_tools-0.2/src/mhm_tools/post/long_term_mean.py +281 -0
  69. mhm_tools-0.2/src/mhm_tools/post/mhm_run_overview.py +681 -0
  70. mhm_tools-0.2/src/mhm_tools/post/ratio.py +95 -0
  71. mhm_tools-0.2/src/mhm_tools/post/relative_difference.py +96 -0
  72. mhm_tools-0.2/src/mhm_tools/post/taylor_diagram.py +139 -0
  73. mhm_tools-0.2/src/mhm_tools/pre/__init__.py +80 -0
  74. mhm_tools-0.2/src/mhm_tools/pre/catchment.py +2985 -0
  75. mhm_tools-0.2/src/mhm_tools/pre/create_id_gauges.py +98 -0
  76. mhm_tools-0.2/src/mhm_tools/pre/create_mhm_restart_file.py +1419 -0
  77. mhm_tools-0.2/src/mhm_tools/pre/create_mhm_restart_from_setup.py +3005 -0
  78. mhm_tools-0.2/src/mhm_tools/pre/crop_mhm_setup.py +722 -0
  79. mhm_tools-0.2/src/mhm_tools/pre/fill_nearest.py +574 -0
  80. mhm_tools-0.2/src/mhm_tools/pre/landcover_ascii_to_nc.py +360 -0
  81. mhm_tools-0.2/src/mhm_tools/pre/latlon.py +276 -0
  82. mhm_tools-0.2/src/mhm_tools/pre/link_folder_tree.py +51 -0
  83. mhm_tools-0.2/src/mhm_tools/pre/merge.py +196 -0
  84. mhm_tools-0.2/src/mhm_tools/pre/pet_calc.py +505 -0
  85. mhm_tools-0.2/src/mhm_tools/pre/prepare_mhm_forcings.py +191 -0
  86. mhm_tools-0.2/src/mhm_tools/pre/regrid.py +193 -0
  87. mhm_tools-0.2/src/mhm_tools/pre/subdomain_masks.py +346 -0
  88. mhm_tools-0.2/tests/__init__.py +0 -0
  89. mhm_tools-0.2/tests/conftest.py +13 -0
  90. mhm_tools-0.2/tests/files/daily_discharge.out +1462 -0
  91. mhm_tools-0.2/tests/files/discharge.nc +0 -0
  92. mhm_tools-0.2/tests/files/lc_1981.asc +9 -0
  93. mhm_tools-0.2/tests/files/lc_1991.asc +9 -0
  94. mhm_tools-0.2/tests/files/mHM_Fluxes_States.nc +0 -0
  95. mhm_tools-0.2/tests/files/mRM_Fluxes_States.nc +0 -0
  96. mhm_tools-0.2/tests/files/test_create_catchment/fdir.nc +0 -0
  97. mhm_tools-0.2/tests/files/test_create_restart/latlon_0p0625.nc +0 -0
  98. mhm_tools-0.2/tests/files/test_hydrograph/README.md +1 -0
  99. mhm_tools-0.2/tests/files/test_hydrograph/discharge.nc +0 -0
  100. mhm_tools-0.2/tests/test_bankfull.py +60 -0
  101. mhm_tools-0.2/tests/test_catchment.py +1181 -0
  102. mhm_tools-0.2/tests/test_cli.py +75 -0
  103. mhm_tools-0.2/tests/test_cli_utils.py +68 -0
  104. mhm_tools-0.2/tests/test_create_mhm_restart_file.py +317 -0
  105. mhm_tools-0.2/tests/test_create_mhm_restart_from_setup.py +2175 -0
  106. mhm_tools-0.2/tests/test_crop_mhm_setup.py +293 -0
  107. mhm_tools-0.2/tests/test_file_handler.py +538 -0
  108. mhm_tools-0.2/tests/test_file_handler_xarray_utils_extra.py +48 -0
  109. mhm_tools-0.2/tests/test_fill_nearest.py +220 -0
  110. mhm_tools-0.2/tests/test_grdc_evaluation.py +637 -0
  111. mhm_tools-0.2/tests/test_gridded_data_evaluation.py +339 -0
  112. mhm_tools-0.2/tests/test_hydrograph.py +213 -0
  113. mhm_tools-0.2/tests/test_landcover_ascii_to_nc.py +253 -0
  114. mhm_tools-0.2/tests/test_latlon.py +63 -0
  115. mhm_tools-0.2/tests/test_link_folder_tree.py +82 -0
  116. mhm_tools-0.2/tests/test_mhm.py +8 -0
  117. mhm_tools-0.2/tests/test_netcdf_encoding.py +221 -0
  118. mhm_tools-0.2/tests/test_pet_calc.py +334 -0
  119. mhm_tools-0.2/tests/test_regrid.py +47 -0
  120. mhm_tools-0.2/tests/test_spatial_metrics.py +226 -0
  121. mhm_tools-0.2/tests/test_taylor_diagram.py +111 -0
  122. mhm_tools-0.2/tests/test_time_utils.py +22 -0
  123. mhm_tools-0.2/tests/test_xarray_utils.py +331 -0
@@ -0,0 +1,154 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ env/
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+
49
+ # Translations
50
+ *.mo
51
+ *.pot
52
+
53
+ # Django stuff:
54
+ *.log
55
+ local_settings.py
56
+
57
+ # Flask stuff:
58
+ instance/
59
+ .webassets-cache
60
+
61
+ # Scrapy stuff:
62
+ .scrapy
63
+
64
+ # Sphinx documentation
65
+ docs/_build/
66
+ docs/output.txt
67
+
68
+ # PyBuilder
69
+ target/
70
+
71
+ # Jupyter Notebook
72
+ .ipynb_checkpoints
73
+
74
+ # pyenv
75
+ .python-version
76
+
77
+ # celery beat schedule file
78
+ celerybeat-schedule
79
+
80
+ # SageMath parsed files
81
+ *.sage.py
82
+
83
+ # dotenv
84
+ .env
85
+
86
+ # virtualenv
87
+ .venv
88
+ venv/
89
+ ENV/
90
+
91
+ # Spyder project settings
92
+ .spyderproject
93
+ .spyproject
94
+
95
+ # Rope project settings
96
+ .ropeproject
97
+
98
+ # mkdocs documentation
99
+ /site
100
+
101
+ # mypy
102
+ .mypy_cache/
103
+
104
+ tags
105
+ /test_*
106
+
107
+ # own stuff
108
+ info/
109
+
110
+ # Cython generated C code
111
+ *.c
112
+ *.cpp
113
+
114
+ # generated version file
115
+ src/mhm_tools/_version.py
116
+
117
+ # generated docs
118
+ docs/source/api/
119
+
120
+ /docs/build/
121
+ *.csv
122
+
123
+ *.DS_Store
124
+
125
+ *.zip
126
+
127
+ .vscode
128
+ .ruff_cache
129
+ tests/tmp
130
+ cov.xml
131
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/luse/lc_1990.asc
132
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/luse/lc_2000.asc
133
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/luse/lc_2006.asc
134
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/meteo/header.txt
135
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/meteo/pet.nc
136
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/meteo/pre.nc
137
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/meteo/tavg.nc
138
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/meteo/tmax.nc
139
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/meteo/tmin.nc
140
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/aspect.asc
141
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/dem.asc
142
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/facc.asc
143
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/fdir.asc
144
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/geology_class.asc
145
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/geology_classdefinition.txt
146
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/idgauges.asc
147
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/LAI_class.asc
148
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/LAI_classdefinition.txt
149
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/slope.asc
150
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/soil_class.asc
151
+ work/peterca/ecflow_work/gdm_calibration/output/6335671_4000deg/mhm_setup/morph/soil_classdefinition.txt
152
+
153
+ # files created when using mount
154
+ **/._*
@@ -0,0 +1,20 @@
1
+ # mHM-Tools developers
2
+
3
+ The mHM-Tools project was created by the following people.
4
+
5
+ ## Core developers
6
+
7
+ - Sebastian Müller (E-mail: <sebastian.mueller@ufz.de>)
8
+ - Simon Lüdke (E-mail: <simon.luedke@ufz.de>)
9
+
10
+ ## Working Group members
11
+
12
+ - Jeisson Javier Leal Rojas (E-mail: <jeisson-javier.leal-rojas@ufz.de>)
13
+ - Matthias Kelbling (E-mail <matthias.kelbling@ufz.de>)
14
+ - Lennart Schüler (E-mail: <lennart.schueler@ufz.de>)
15
+
16
+ ## Supervisors
17
+
18
+ - Stephan Thober (E-mail: <stephan.thober@ufz.de>)
19
+ - Luis Samaniego (E-mail: <luis.samaniego@ufz.de>)
20
+ - Sabine Attinger (E-mail: <sabine.attinger@ufz.de>)