您的位置:首页 > 其它

HDF5 notes

2015-09-13 20:07 351 查看

killer features

hierarchical groups

attributes

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 type

organized 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
dataset
s and other
group
s

using B-trees

attribute
: user defined metadata, can be attached to
dataset
and
group


HDF5 library

written in C

with 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 dataset

reshape

can’t change the number of axes
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: