Closed AL89 closed 4 months ago
I think there are several solutions or parts:
mikeio.generic.concat
to concatenate filesmikecore
directly and skip MIKE IO
, then you can append to an existing Dfs2 file.Hi @ecomodeller I tried the first solution and it worked like a charm! Thank you!
Hi there
I am in a bit of a struggle. And I hope my problem has a solution.
It's all about to avoid memory errors, like:
MemoryError: Unable to allocate 1.52 GIB for an array with shape (41760,75,65) and data type float64
. I am seeking a solution where I can append my data stored in my memory into an existing Dfs2 file, without loading the existing data into memory. Like a "load and dump" solution.The example above with the
MemoryError
, the first "dimension" is the time as you might know, which is41760
timesteps with timestep of 60 seconds. This means that it tried to load 29 days before it "crashed"... and I would like to have a year.When loading
Dfs2
from themikeio
, I am able to see some details about the file in-memory. Is it possible to store data in the existingDataArray
(notDataset
) in this mode?Is there any solution to my memory problem?
Thanks in advance!