I am new with zarr, HDF5 and LMDB. I have converted data from HDF5 to Zarr but i got many files with extension .n (n from 0 to 31). I want to have just one file with .zarr extension. I tried to use LMDB (zarr.LMDBStore function) but i don't understand how to create .mdb file ? Do you have an idea how to do that ? Thank you !
Asked
Active
Viewed 277 times
0
-
Is there a small snippet of code you can post? As per: https://stackoverflow.com/help/minimal-reproducible-example – Quinn Mortimer Jun 21 '19 at 12:26
2 Answers
0
@kish When trying your solution i got this error:
from comtypes.gen import Access ImportError: cannot import name 'Access'

Fatma RAHMANI
- 11
- 3
0
There are some examples of using LMDB as a Zarr store in the documentation for the LMDBStore class. E.g.:
>>> store = zarr.LMDBStore('data/group.mdb')
>>> root = zarr.group(store=store, overwrite=True)
>>> foo = root.create_group('foo')
>>> bar = foo.zeros('bar', shape=(10, 10), chunks=(5, 5))
>>> bar[...] = 42
>>> store.close() # don't forget to call this when you're done
You don't have to do anything other than the above to create the .mdb file, it will be created automatically.

Alistair Miles
- 312
- 1
- 7