-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Defining landvalue when writing dfs2-file #283
Comments
That seems useful, I just have to figure out how the landvalue is actually stored in the dfs2 file. |
Land value is stored in the custom block named "M21_Misc", the 4th value, as is also seen from the attached image. To store that correctly in a dfs2 file, check out e.g. (C# code):
|
There is a similar example for Python in the mikecore-python repository:
|
Well, there is actually a full example of making a bathymetry dfs2 file, look for |
Hello Henrik and Jesper Thanks for your quick respons. It helped a great deal. We will look forward to see it implemented in MIKEIO 👍 |
There does not seem to be an option to define a landvalue when wrtiting a dfs2-file from python with Dfs2().write. The landvalue is greyed out when opening the file in MIKE Zero.
We neeed the functionallity when importing a bathymetry into a simulation-setup such as .m21fm. When the dfs2 is used as a domain/mesh we are prompted with the error: "no landvalue set". How can we specify a custom landvalue?
The text was updated successfully, but these errors were encountered: