How can I extract depth-averaged values from a 3D dfsu file?
Question How can I extract depth-averaged values from a 3D dfsu file?
Answer It is possible to use a tool from the bin directory and execute it via the Launch Simulation Engine.
The tool is called ‘DataVerticalAveragingFM.exe’. The file is installed with MIKE Zero and can be found in e.g. C:\Program Files (x86)\DHI\MIKE Zero\2022\bin\x64.
You have to create an input ascii file to define the data. You may extract more than one item at a time and you can choose the layer interval to use for the averaged values. The output will be a 2D dfsu file. An example with the first two items is shown below.
The parameter 'mode' defines how you count the number of layers:
mode = 0: from maximum bottom mode = 1: from surface
This tool can also be used to extract a single layer from a 3D dfsu file to a 2D dfsu file by defining first_layer = last_layer. E.g. to extract the top layer of a 3D dfsu file to a 2D dfsu file use the following setup: