Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
HDF5 Help

Subject: HDF5 Help

From: Matt

Date: 27 Jun, 2013 23:00:22

Message: 1 of 1

I have a very large .h5 file. When I use the h5info command, I get:

>> h5disp('D06-26-2013T11-45-03.h5')
HDF5 D06-26-2013T11-45-03.h5
Group '/'
    Dataset 'EventData'
        Size: 8237450
        MaxSize: Inf
        Datatype: H5T_COMPOUND
            Member 'timestamp': H5T_STD_U64LE (uint64)
            Member 'ADC_value': H5T_STD_U32LE (uint32)
            Member 'detector': H5T_STD_U32LE (uint32)
        ChunkSize: 1
        Filters: shuffle, deflate(1)
        FillValue: H5T_COMPOUND
    Dataset 'RawData'
        Size: 248x8237450
        MaxSize: InfxInf
        Datatype: H5T_STD_I32LE (int32)
        ChunkSize: 248x10
        Filters: shuffle, deflate(1)
        FillValue: 0

QUESTION: I want to assign a variable to each member of 'EventData', i.e. something like detector= h5read('D06-26-2013T11-45-03.h5', '/EventData/detector'), although this doesn't work. Anybody know how to do this?

Thanks a lot!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us