Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reading HDF5 files? Plans?

704 views
Skip to first unread message

Alex van der Spek

unread,
Jan 12, 2012, 8:23:58 AM1/12/12
to
I was wondering if there are plans to add HDF5 capability to gnuplot.

I realize HDF5 is a very rich format. Won't be easy to write a general
interface but something like:

gnuplot>>> splot 'foo.hdf5' 'dataset name' using 1:2:3

or

gnuplot>>> plot 'foo.hdf5' 'dataset name' using 1:2:

might be possible?

Incidentally it would immediately include the capability to plot *.mat files
too as the latest version thereof are nothing but HDF5 files in disguise.

The HDFgroup provides the API to HDF5 files, that can't be the problem.
Coming up with a sensible implementation in gnuplot script language will
require some thinking and talking, though.

Having acquired a reasonable understanding of HDF5 I would offer support and
help to develop this if this is seen as worthwhile to develop.

Alex van der Spek


Christoph Bersch

unread,
Jan 12, 2012, 8:41:06 AM1/12/12
to
On 12.01.2012 14:23, Alex van der Spek wrote:
> I was wondering if there are plans to add HDF5 capability to gnuplot.

I can't comment on that, but

> I realize HDF5 is a very rich format. Won't be easy to write a general
> interface but something like:
>
> gnuplot>>> splot 'foo.hdf5' 'dataset name' using 1:2:3

you can do such thing with

gnuplot>>> splot '< h5totxt -s " " -d name' using 1:2:3

using e.g. the h5utils
<http://ab-initio.mit.edu/wiki/index.php/H5utils>, I use that for all my
data.

So I don't know if there is really a need to implement this in gnuplot.
I guess a very simple interface to extract only datasets by name could
make sense, but not a general interface.

Christoph

Alex van der Spek

unread,
Jan 14, 2012, 11:10:32 AM1/14/12
to
That's a solution for Linux/Unix only!

Nevertheless, thanks much! I wasn't aware of the MIT h5 tools.

Alex van der Spek


"Christoph Bersch" <use...@bersch.net> wrote in message
news:jemnti$1ejg$1...@gwdu112.gwdg.de...
0 new messages