Convert *.asc file to *.dfs2 #602
-
Hi community, I have tried to convert an ASC file to a dfs2 grid file, however I meet challenges whenever I need to include more than 1 timestep. Until now I have successfully created a dfs2 file based on a *.asc grid file with 1 time step. However, I want to simply add more time steps, for which the following time steps are just a copy of the imported *.asc file. When I use mikeio.Grid2D, the specification of the data=array gives an error whenever the array has been transformed to a 3-d array. I have provided the code below and hope that some of you might know how to get on with the task.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I worked out the solution myself. The function mikeio.Dataarray needs the time dimension. See below solution.
Maybe somebody else can benefit from the question. Cheers. |
Beta Was this translation helpful? Give feedback.
I worked out the solution myself. The function mikeio.Dataarray needs the time dimension. See below solution.