Replies: 2 comments 6 replies
-
It is possible to open Dfs2,3 files in edit mode and append data to the file using the lower level mikecore library https://github.com/DHI/mikecore-python/blob/29fd0e4fe84e9fecd3da1e3725f0b2ed46891723/mikecore/DfsFileFactory.py#L53 This is efficient, and appending to an existing file is easier than creating a new from scratch since you don't need to specify the entire header. I am thinking about how to make this even easier with MIKE IO. |
Beta Was this translation helpful? Give feedback.
-
It is possible to open Dfs2,3 files in append mode and append data to the file using the lower level mikecore library https://github.com/DHI/mikecore-python/blob/29fd0e4fe84e9fecd3da1e3725f0b2ed46891723/mikecore/DfsFileFactory.py#L53 This is efficient, and appending to an existing file is easier than creating a new from scratch since you don't need to specify the entire header. I am thinking about how to make this even easier with MIKE IO. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Is there an efficient way to append data to an existing dfs2 or dfs3 file? I.e. a way to append data without having to load and read the entire existing file, and then baiscally write a totally new one?
Would be helpful for me; we are often dealing with large dfs files.
The DFSU 2D class seems to offer an append() method: https://dhi.github.io/mikeio/dfsu-2d.html - but I'm not sure if that offers the functionality I am asking about.
Beta Was this translation helpful? Give feedback.
All reactions