-
Is it possible to read results for variables defined in the MIKE HYDRO? They are stored in an additional result file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For doing this you could try to use a development implementation of mikeio1d from feature/result_network_auto_completion branch. You can install a feature branch using: pip install https://github.com/DHI/mikeio1d/archive/feature/result_network_auto_completion.zip Here I implemented from mikeio1d import Res1D
from mikeio1d.query import QueryDataGlobal
res1d = Res1D('MyRes1D.resd')
query_global_data = QueryDataGlobal('Variable:MyVariable')
df = res1d.read(query_global_data) If I remember correctly, the sensor quantities/variables are considered global data items. from mikeio1d import Res1D
res1d = Res1D('MyRes1D.resd')
res1d.global_data.VariableMyVariable.add()
df = res1d.read() |
Beta Was this translation helpful? Give feedback.
For doing this you could try to use a development implementation of mikeio1d from feature/result_network_auto_completion branch. You can install a feature branch using:
Here I implemented
QueryDataGlobal
, which can be used as:If I remember correctly, the sensor quantities/variables are considered global data items.
Additionally, that branch has auto-completion functionality for Jupyter etc., so now one c…