Skip to content

Reading results for Variables from additional result file #42

Answered by gedaskir
leszek-z asked this question in Q&A
Discussion options

You must be logged in to vote

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 QueryDataGlobal, which can be used as:

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.
Additionally, that branch has auto-completion functionality for Jupyter etc., so now one c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gedaskir
Comment options

Answer selected by gedaskir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants