I need to save a really big array (is a matrix of double
s, with size of 5e5 x 3e4.
The context is: I have a 1D simulation of viscous disc, each row is a snapshot of the simulation ( the surface density).
all the data is relevant (more or less), so in principle i cannot reduce the size of the matrix.
I tried using np.save
and h5py
. with that, a matrix of 5e4x1.5e3
has a size of 6 gb in the disc. h5py
is faster than np.save
writing it, but I dont know if that will be the case for the full simulation (which should be something like 110 GB.
is there a way to store the data in less space? or, is there another way to save and load the data that can be faster than the other two methods?
Thanks!