I'm trying to write a large (~ 20GB) .fvp file, which behaves like a delimited text file to a matlab array and save it as a .mat with python 3. Right now, I am reading the file in python, converting the values to a single numpy array and saving it with scipy.io.savemat()
.
However, my pc runs out of memory in the process, which I think is due to the large size of the numpy array since my code runs okay for smaller .fvp files.
To solve this problem, I want to write and save sections of the .fvp file in multiple .mat files and join them up later, preferably in python. Is there a way to do it? I can't find it in scipy.io.