-
Hi,
I am not sure how you are going about using IronPython. I have been using Python for pretty much all my input and output from DHI MIKE. You just have to proceed in same way as using Matlab Toolbox, You will need to use the .dll files which are read by IronPython or Python for .NET toolkit. It allows you to use the DHI toolbox. I have been writing a set of scripts for the same process, though i can't share my scripts, I would be more than happy to help you with the process if you give more details how you are doing it and at what stage are you getting problems.
Extracting and converting it to any other format is simple step once you figure out how to import the arrays from dfs2 files.
-
Hi,
Thanks for your reply. I changed the output to .dfs2 from .dfsu and I get the output which looks somewhat logical but I am still confused as the .dfs file system works where they flatten the array, meaning that a 16*25 array will become a list of 400 values. What I am not able to understand is that how is the flattening of array done. In my model, 16 directions for wave propagation and 25 frequencies. I am trying to figure out whether it is block of 16 direction per frequency or block of 25 frequency per direction.
Currently, I have seen that it makes sense if i use block of 16 per frequency. I am not sure if i make any sense so i just attached my result.
Hope, someone can agree to what I am trying to do.
-
Hi,
I am trying to obtain a 2D spectral values of Energy Density from MIKE 21 SW. I have tried using .dfsu file type, but I have been unable to do so till now.
I was wondering if some one can help me in this regards. Also, I wanted to know that what will the array look like in dfsu output.
cheers