-
Notifications
You must be signed in to change notification settings - Fork 58
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
Dfsu: contourf plot type results error with NaN values #343
Comments
Hi @mmfontana - sorry for the delay in getting back to you. We are really busy. I have not yet had the time to look into this but thanks to you, we are aware and will try to look at it soon. Thanks a lot for submitting this issue. |
Hello @jsmariegaard. Thank you for your message and help. It is fine, I will plot through the GUI. But it would be nice to have it for the next Oil Spill projects (several scenarios). Thanks. |
Hello, |
Noted. Thanks for letting us know. As soon as we have time - we will look into this. |
If anyone is looking for a temporary workaround, applying a filter using the
|
Thanks @alexander0042 - that's very helpful |
Describe the bug
I am trying to plot a. dfsu file with NaN values, which are physically justified. I am using "contourf" as the plot type to clearly show the isolines. However, I am getting the following error related to the NaN values in the mesh: "ValueError: z array must not contain non-finite values within the triangulation".
To Reproduce
Please find below how to reproduce the error. Also, some try to overcome the issue. The linear interpolation on the boundaries should not happen. I have tried to use some masks (out of mikeio), but this is still not the expected behavior - see below how MIKE Zero GUI deals with it ("Shaded contour").
.dfsu file
Expected
First try
Further try
System information:
The text was updated successfully, but these errors were encountered: