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.
- mhm_tools-0.2/.gitignore +154 -0
- mhm_tools-0.2/AUTHORS.md +20 -0
- mhm_tools-0.2/COPYING +674 -0
- mhm_tools-0.2/COPYING.LESSER +165 -0
- mhm_tools-0.2/LICENSE.md +48 -0
- mhm_tools-0.2/PKG-INFO +99 -0
- mhm_tools-0.2/README.md +24 -0
- mhm_tools-0.2/pyproject.toml +176 -0
- mhm_tools-0.2/src/mhm_tools/__init__.py +31 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_2d_map.py +119 -0
- mhm_tools-0.2/src/mhm_tools/_cli/__init__.py +5 -0
- mhm_tools-0.2/src/mhm_tools/_cli/__main__.py +6 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_bankfull.py +84 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_calculate_pet.py +94 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_create_catchment.py +456 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_create_header.py +103 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_create_idgauges.py +114 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_create_mhm_restart_file.py +294 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_create_mhm_restart_from_setup.py +452 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_create_subdomain_masks.py +94 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_crop_mhm_setup.py +263 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_difference.py +165 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_discharge_evaluation.py +239 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_file_converter.py +105 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_fill_nearest.py +80 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_gridded_data_evaluation.py +358 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_hydrograph.py +117 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_landcover_ascii_to_nc.py +119 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_latlon.py +180 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_link_folder_tree.py +71 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_long_term_mean.py +147 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_main.py +704 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_merge.py +71 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_mhm_run_overview.py +80 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_prepare_mhm_forcings.py +151 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_ratio.py +173 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_regrid.py +65 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_relative_difference.py +171 -0
- mhm_tools-0.2/src/mhm_tools/_cli/_taylor_diagram.py +118 -0
- mhm_tools-0.2/src/mhm_tools/_version.py +1 -0
- mhm_tools-0.2/src/mhm_tools/common/__init__.py +74 -0
- mhm_tools-0.2/src/mhm_tools/common/cli_utils.py +167 -0
- mhm_tools-0.2/src/mhm_tools/common/constants.py +76 -0
- mhm_tools-0.2/src/mhm_tools/common/esri_grid.py +402 -0
- mhm_tools-0.2/src/mhm_tools/common/file_handler.py +1223 -0
- mhm_tools-0.2/src/mhm_tools/common/logger.py +216 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/__init__.py +7 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/esp.py +30 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/metrics_handler.py +164 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/mspaef.py +36 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/spaef.py +43 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/tsm.py +160 -0
- mhm_tools-0.2/src/mhm_tools/common/metrics/waspaef.py +51 -0
- mhm_tools-0.2/src/mhm_tools/common/netcdf.py +420 -0
- mhm_tools-0.2/src/mhm_tools/common/plotter.py +261 -0
- mhm_tools-0.2/src/mhm_tools/common/provenance.py +51 -0
- mhm_tools-0.2/src/mhm_tools/common/resolution_handler.py +187 -0
- mhm_tools-0.2/src/mhm_tools/common/time_utils.py +285 -0
- mhm_tools-0.2/src/mhm_tools/common/utils.py +571 -0
- mhm_tools-0.2/src/mhm_tools/common/xarray_utils.py +542 -0
- mhm_tools-0.2/src/mhm_tools/post/2d_map.py +59 -0
- mhm_tools-0.2/src/mhm_tools/post/__init__.py +54 -0
- mhm_tools-0.2/src/mhm_tools/post/bankfull.py +143 -0
- mhm_tools-0.2/src/mhm_tools/post/difference.py +107 -0
- mhm_tools-0.2/src/mhm_tools/post/discharge_evaluation.py +2158 -0
- mhm_tools-0.2/src/mhm_tools/post/gridded_data_evaluation.py +2675 -0
- mhm_tools-0.2/src/mhm_tools/post/hydrograph.py +1560 -0
- mhm_tools-0.2/src/mhm_tools/post/long_term_mean.py +281 -0
- mhm_tools-0.2/src/mhm_tools/post/mhm_run_overview.py +681 -0
- mhm_tools-0.2/src/mhm_tools/post/ratio.py +95 -0
- mhm_tools-0.2/src/mhm_tools/post/relative_difference.py +96 -0
- mhm_tools-0.2/src/mhm_tools/post/taylor_diagram.py +139 -0
- mhm_tools-0.2/src/mhm_tools/pre/__init__.py +80 -0
- mhm_tools-0.2/src/mhm_tools/pre/catchment.py +2985 -0
- mhm_tools-0.2/src/mhm_tools/pre/create_id_gauges.py +98 -0
- mhm_tools-0.2/src/mhm_tools/pre/create_mhm_restart_file.py +1419 -0
- mhm_tools-0.2/src/mhm_tools/pre/create_mhm_restart_from_setup.py +3005 -0
- mhm_tools-0.2/src/mhm_tools/pre/crop_mhm_setup.py +722 -0
- mhm_tools-0.2/src/mhm_tools/pre/fill_nearest.py +574 -0
- mhm_tools-0.2/src/mhm_tools/pre/landcover_ascii_to_nc.py +360 -0
- mhm_tools-0.2/src/mhm_tools/pre/latlon.py +276 -0
- mhm_tools-0.2/src/mhm_tools/pre/link_folder_tree.py +51 -0
- mhm_tools-0.2/src/mhm_tools/pre/merge.py +196 -0
- mhm_tools-0.2/src/mhm_tools/pre/pet_calc.py +505 -0
- mhm_tools-0.2/src/mhm_tools/pre/prepare_mhm_forcings.py +191 -0
- mhm_tools-0.2/src/mhm_tools/pre/regrid.py +193 -0
- mhm_tools-0.2/src/mhm_tools/pre/subdomain_masks.py +346 -0
- mhm_tools-0.2/tests/__init__.py +0 -0
- mhm_tools-0.2/tests/conftest.py +13 -0
- mhm_tools-0.2/tests/files/daily_discharge.out +1462 -0
- mhm_tools-0.2/tests/files/discharge.nc +0 -0
- mhm_tools-0.2/tests/files/lc_1981.asc +9 -0
- mhm_tools-0.2/tests/files/lc_1991.asc +9 -0
- mhm_tools-0.2/tests/files/mHM_Fluxes_States.nc +0 -0
- mhm_tools-0.2/tests/files/mRM_Fluxes_States.nc +0 -0
- mhm_tools-0.2/tests/files/test_create_catchment/fdir.nc +0 -0
- mhm_tools-0.2/tests/files/test_create_restart/latlon_0p0625.nc +0 -0
- mhm_tools-0.2/tests/files/test_hydrograph/README.md +1 -0
- mhm_tools-0.2/tests/files/test_hydrograph/discharge.nc +0 -0
- mhm_tools-0.2/tests/test_bankfull.py +60 -0
- mhm_tools-0.2/tests/test_catchment.py +1181 -0
- mhm_tools-0.2/tests/test_cli.py +75 -0
- mhm_tools-0.2/tests/test_cli_utils.py +68 -0
- mhm_tools-0.2/tests/test_create_mhm_restart_file.py +317 -0
- mhm_tools-0.2/tests/test_create_mhm_restart_from_setup.py +2175 -0
- mhm_tools-0.2/tests/test_crop_mhm_setup.py +293 -0
- mhm_tools-0.2/tests/test_file_handler.py +538 -0
- mhm_tools-0.2/tests/test_file_handler_xarray_utils_extra.py +48 -0
- mhm_tools-0.2/tests/test_fill_nearest.py +220 -0
- mhm_tools-0.2/tests/test_grdc_evaluation.py +637 -0
- mhm_tools-0.2/tests/test_gridded_data_evaluation.py +339 -0
- mhm_tools-0.2/tests/test_hydrograph.py +213 -0
- mhm_tools-0.2/tests/test_landcover_ascii_to_nc.py +253 -0
- mhm_tools-0.2/tests/test_latlon.py +63 -0
- mhm_tools-0.2/tests/test_link_folder_tree.py +82 -0
- mhm_tools-0.2/tests/test_mhm.py +8 -0
- mhm_tools-0.2/tests/test_netcdf_encoding.py +221 -0
- mhm_tools-0.2/tests/test_pet_calc.py +334 -0
- mhm_tools-0.2/tests/test_regrid.py +47 -0
- mhm_tools-0.2/tests/test_spatial_metrics.py +226 -0
- mhm_tools-0.2/tests/test_taylor_diagram.py +111 -0
- mhm_tools-0.2/tests/test_time_utils.py +22 -0
- mhm_tools-0.2/tests/test_xarray_utils.py +331 -0
mhm_tools-0.2/.gitignore
ADDED
|
@@ -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
|
+
**/._*
|
mhm_tools-0.2/AUTHORS.md
ADDED
|
@@ -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>)
|