필터 지우기
필터 지우기

band indexing in an hdf 5 file

조회 수: 1 (최근 30일)
GdogCdog
GdogCdog 2012년 2월 24일
Ho do you index in to an hdf 5 variable
I'm trying to open an image matrix stored in hdf5 format (a new format to me). Matrix is 500*500, but represents a time series, where each time step is a seperate image (see below).
h5disp('C:\timeseriestest\data1\') Dataset 'TSim1' Size: 1500x500x500 MaxSize: 1500x500x500 Datatype: H5T_STD_U16LE (uint16) ChunkSize: 1x500x500 ....
Not enough memory to open all bands as a single image (i.e. dat = h5read('C:\timeseriestest\data1\', '/TSim1');). If this were possible I could just index into the matlab array.
Is there a simple way to index in, and pull one band at a time for analysis equivalent to:
for i = 1:1500, dat = mydata(:,:,i) .... etc ?
Thanks

채택된 답변

John
John 2012년 2월 27일
H5READ can do that for you.
  댓글 수: 2
GdogCdog
GdogCdog 2012년 2월 27일
Any chance you could supply some example syntax. Thanks
GdogCdog
GdogCdog 2012년 2월 27일
OK sorry that was easy. Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 HDF5에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by