HDF5中的稀疏阵列支持 [英] Sparse array support in HDF5

查看:94
本文介绍了HDF5中的稀疏阵列支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以某种方式在磁盘上存储512 ^ 3阵列,而我目前正在使用HDF5.由于阵列稀疏,因此浪费了很多磁盘空间.

I need to store a 512^3 array on disk in some way and I'm currently using HDF5. Since the array is sparse a lot of disk space gets wasted.

HDF5是否提供对稀疏数组的任何支持?

Does HDF5 provide any support for sparse array ?

推荐答案

分块数据集(H5D_CHUNKED)允许稀疏存储,但是取决于您的数据,开销可能很重要.

Chunked datasets (H5D_CHUNKED) allow sparse storage but depending on your data, the overhead may be important.

采用一个典型的数组,同时尝试稀疏和非稀疏,然后比较文件大小,然后您会发现它是否确实值得.

Take a typical array and try both sparse and non-sparse and then compare the file sizes, then you will see if it is really worth.

这篇关于HDF5中的稀疏阵列支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆