Skip to content

How to read link discharge in a structure (direct discharge on a river network) #44

Answered by gedaskir
hawklorry asked this question in Q&A
Discussion options

You must be logged in to vote

If it is not too big of a hassle 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 QueryDataStructure, which can be used as:

from mikeio1d import Res1D
from mikeio1d.query import QueryDataStructure
res1d = Res1D('MyRes1D.resd')
query_structure = QueryDataStructure('DischargeInStructure', 'MyStructureId')
df = res1d.read(query_structure)

For now QueryDataStructure has a drawback that it requires all structure IDs to be unique.
Additionally, that branch has auto-completion fun…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@hawklorry
Comment options

@gedaskir
Comment options

Answer selected by gedaskir
@gedaskir
Comment options

@hawklorry
Comment options

@gedaskir
Comment options

@hawklorry
Comment options

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