[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: load hdf5 file that contains compound datatype for a dataset
From: |
Lucas Salvador |
Subject: |
RE: load hdf5 file that contains compound datatype for a dataset |
Date: |
Fri, 22 Feb 2019 08:18:41 +0000 |
Hi Mike,
Thank you very much for your fast answer. I could load hdf5 file partially
using
data_results = load('-hdf5','-force',hdf5_file,'Results');
where Results is a dataset. I only have the problem with another dataset which
is of compound type. I would like to try any tool that can load the whole file
such as your patch or h5util, yet I am a newbie with octave and don't know
exactly how to install a .cset file (such as in the forum thread you sent)
without building the whole software.
Is there a function .m available (such as the 'load' function of octave) that I
could use as a separate function without any installation of package build?
Thanks!
Best regards,
Lucas
-----Mensaje original-----
De: Mike Miller <address@hidden>
Enviado el: 21 February 2019 23:08
Para: Lucas Salvador <address@hidden>
CC: address@hidden
Asunto: Re: load hdf5 file that contains compound datatype for a dataset
On Thu, Feb 21, 2019 at 17:11:06 +0000, Lucas Salvador wrote:
> I have Octave 4.4 and I would like to load an hdf5 file that contains
> a compound datatype in a dataset (1 column is scalar, 1 column is
> string). When trying to load the whole file or this particular dataset
> Octave returns this error:
>
> * load: error while reading hdf5 item "Name of Dataset"
Octave's load function does not load HDF5 files, so this error message is
correct, the file is not in a format recognized by Octave.
There is a h5read function in development that will read data from HDF5 data
files, but it is not part of Octave yet. Do you have the time and interest to
build Octave yourself and test this new function?
https://savannah.gnu.org/patch/?8607
--
mike