Skip to content

Instantly share code, notes, and snippets.

@aquilesC
Last active April 7, 2017 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aquilesC/f1c7e944e33498578e85c11dce809af2 to your computer and use it in GitHub Desktop.
Save aquilesC/f1c7e944e33498578e85c11dce809af2 to your computer and use it in GitHub Desktop.
import h5py
filename = 'test.hdf5'
f = h5py.File(filename,'a')
g = f.create_group('BigArray')
dset = g.create_dataset('timelapse', (1000,1000, 1000), compression='gzip')
for i in range(1000):
for j in range(1000):
dset[i,j,0] = 1
f.flush()
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment