문제

My hdf5 file contains three arrays: ArrayA(30,100,100),ArrayB(100,100),ArrayC(100,100),how can I use LZF or LZO filters to compress them?

도움이 되었습니까?

해결책

I would recommend to use the blosc filter. It usually performs better than LZF or LZO.
This should work:

filters = tables.Filters(complevel=4, complib='blosc')
atom = tables.Float32Atom()
array = h5_f.createCArray(group, 'ArrayA', atom, shape, filters=filters)
array[:] = data
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top