I have a numpy array of size (192,192,4000) I would like to write this in a fast way on the disk. I don't care about the format, I can convert it afterwards.
What I do write now is that I save it in csv format which takes long time:
for i in range(0,192):
np.savetxt(foder+"/{}_{}.csv".format(filename,i), data[i] , "%i", delimiter=", ")
Which takes 20-25 seconds. I tried pandas DataFrame and Panel approaches found in stackoverflow questions already and numpy save. All of them seems to run without error but the folder is empty when I open it.
Any idea how to improve the speed?
Why code runs without error but nothing is saved, for example for numpy.save?!