HDF5 notes
2015-09-13 20:07
351 查看
killer features
hierarchical groupsattributes
descriptive metadata
slicing
actural data is on disk, slicing made it red to memroy
have control of storage allocated
support compression
HDF5
large numerical arrays of homogenous typeorganized hierarchically
tagging with arbitrary metadata
high performance
partial I/O
HDF5 data model
dataset: array like objects that sotre numerical data on disk
attributes: name, type, shape
support random access
group: hierarchical containers that store
datasets and other
groups
using B-trees
attribute: user defined metadata, can be attached to
datasetand
group
HDF5 library
written in Cwith C++, Java and Python bindings
read operation
h5py figures out the shape (10, 50) of the resulting array object.An empty NumPy array is allocated of shape (10, 50).
HDF5 selects the appropriate part of the dataset.
HDF5 copies data from the dataset into the empty NumPy array.
The newly filled in NumPy array is returned.
write operation
h5py figures out the size of the selection, and determines whether it is compatible with the size of the array being assigned.HDF5 makes an appropriately sized selection on the dataset.
HDF5 reads from the input array and writes to the file.
performance tips
reduce read/write on the datasetreshape
can’t change the number of axes相关文章推荐
- 我对python线程池的理解
- 黑马程序员─────Java基础───字符串
- JavaScript学习笔记8-jQuery内容过滤选择器、可见性过滤选择器深度解析
- java中的Random类
- 2015腾讯技术面笔试题
- [转]SSIS package taking forever to load when you open it?
- hdu 5441 Travel(并查集+二分)
- 求素数和的算法:很神奇,求大神解释一下代码.
- ios下使用AFNetworking通过Nginx服务器实现大文件上传
- 二叉树相关算法
- OpenCV之响应鼠标(二):函数cvSetMouseCallback()和其副程式onMouse()的使用(OpenCV2.4.5)
- 焊接技术
- HUD 2051 Bitset
- UML概述
- 使用RecyclerView实现带Header和Footer的GridView
- hdu 5438 Ponds(toposort+DFS)
- 转自go_with_wind的博客Oracle逻辑读详解
- 一阶逻辑 备忘
- ITOO之用户体验
- 2.1 ARM家族大检阅