-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for reading ISG files #326
Comments
Notes Part 1I sat with @Huite to discuss possible approaches a while ago. He worked on a branch, but never got to finishing it. My notes are as follows:
Segment definition
FilesBasically:
More specifically:
ISC1N > 0 : cross-section DIST: distance along segments ISC2DIST: Distance of the cross-section measured from the centre of the riverbed (minus to the left, and positive to the right) N > 0
N < 0
Data which defines cell if dx > 0 and dy > 0:
if dx < 0 and dy < 0
ISTFor weirs
ISQFor Q-H relations Tabulated rating curve (just like RIBASIM) Q, width, depth, factor |
Notes part 2Gridding bathymetry (N<0)Say for the following 2D bathymetry grid:
We have the following line orthogonal to the segment at calculation point X:
With the following cross-sections and water-level h at the calculation point:
The bathymetry can be gridded to a Ugrid2D. The orthogonal lines at calculation points can be used to map stages at calcution points to bathymetry grid cells. The grid can be fully filled with a Laplace interpolation. All cells active where h>bottom, else make nan |
Notes part 3Gridding cross-sections (N>0)We discussed rasterrizing the cross-sections by using a buffer of their maximum width, but this idea was discarded because of the many (literal) corner cases. For each profile, create a table with the wetted area/perimeter for each stage.
This can be used to compute the conductance. River bottom elevation is determined by simply taking the minimum elevation. Stage is defined by calculation points ISG. In this way, we can keep things to rasterizing a 1D Ugrid network, as explained further. For the following segment laying on a grid:
Then we add extra points on the 1D network where it intersects the grid edges (the numbers indicate cellids for the first column):
The new intersection points can be filled with Laplace interpolation. With this, we can work towards the following table, which is used to compute conductances:
For this we require tools to refine networks, based on vertices. Care should be taken here with the indexes.
Should become:
This requires the following features:
|
@Huite and I had a meeting with Wouter. It was mentioned there that:
|
Laplace interpolation for 1D has already been fixed a little while ago: Deltares/xugrid@90c03be |
Thanks, updated the list with issues to track in the other repositories. |
In GitLab by @JoerivanEngelen on Feb 6, 2023, 17:31
From what I know, the ISG file format follows a fairly complicated data model.
It is however used in the regional models of the Netherlands, for the SFR package, as far as I know. (Not for the LHM).
The text was updated successfully, but these errors were encountered: