dataset_compression_params

s100py.s1xx.dataset_compression_params(array)

return compression options for a dataset based on the size of the numpy array. If the array is large (greater than 100 items) then use gzip compression, otherwise no compression.

returns a dictionary of options to be passed to the h5py create_dataset method using **opts syntax.