Closed s-goldman closed 4 years ago
Change the box direct links to something reasonable. Also use hdf5 files. Write the files using
a.write('outputs.hdf5', path='data')
and then read the files using
import h5py filename = "outputs.hdf5" f = h5py.File(filename, "r") key = list(f.keys())[0] data = list(f[key][1:4])
import h5py
filename = "outputs.hdf5"
f = h5py.File(filename, "r")
key = list(f.keys())[0]
data = list(f[key][1:4])
the 4 is the number of rows, use this for reading in a fraction of the grid for testing
Change the box direct links to something reasonable. Also use hdf5 files. Write the files using
a.write('outputs.hdf5', path='data')
and then read the files using
import h5py
filename = "outputs.hdf5"
f = h5py.File(filename, "r")
key = list(f.keys())[0]
data = list(f[key][1:4])
the 4 is the number of rows, use this for reading in a fraction of the grid for testing