Is it neccessary to define the ChunkSize and Filters when using h5read?

3 ビュー (過去 30 日間)
wei zhang
wei zhang 2020 年 6 月 5 日
コメント済み: Walter Roberson 2021 年 2 月 17 日
I am using h5read to read some data from hdf5 file. In the Matlab examples, the properties, "ChunkSize" and "Filters", are set as default. But in my own data, they have their specific values.
ChunkSize: [1 9498 2]
>> ifo.Filters
ans =
struct with fields:
Name: 'deflate'
Data: 4
I want to know should I set these properties in the h5read command? If it is neccessary, how could I achieve that? I have little knowledge of the exactly meanings for these properties. Thank you.

回答 (1 件)

Abhishek Gupta
Abhishek Gupta 2021 年 2 月 17 日
Hi,
As per my understanding, you would like to know if you need to define the "ChunkSize" and "Filters" parameters while reading the file using the "h5read" function. If you have already defined the "ChunkSize" and "Filters", while creating the HDF5 dataset, then there is no need to specify. To confirm, if your dataset has the desired parameter values, then use the "h5disp" function in MATLAB.
Referring to the following MATLAB documentation: -
  1. h5read
  2. h5create
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 2 月 17 日
You would only need to specify them if you had reason to override the values stored in the file.

サインインしてコメントする。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by