[Hdf-forum] VL string attribute in Fortran

2014-02-05 Thread Pierre de Buyl
Dear hdf community, I would like to know whether the absence of a Read / Write Variable Length String Datatype (Attribute) is due to a technical problem. The example page [1] does not provide such an example. In the context of the H5MD file format [2], we are using (currently) VL string

Re: [Hdf-forum] Hdf5 view crashes without error message when opening a (corrupt) file

2014-02-05 Thread Elena Pourmal
Hi Christoph, h5check shouldn't give segmentation fault. We need to fix this and will need the file. Could you please upload it to ftp://ftp.hdfgroup.uiuc.edu/pub/incoming/epourmal/ Thank you! Elena ~~ Elena Pourmal The HDF Group

Re: [Hdf-forum] VL string attribute in Fortran

2014-02-05 Thread Scot Breitenfeld
I've attached a modified version of h5ex_t_vlstring_F03.f90 to use attributes instead. This example assumes you have a F2003 compiler and you used --enable-fortran2003 when you built hdf5. Hope this helps. Scot From: Hdf-forum

[Hdf-forum] HDFView and Dimensions

2014-02-05 Thread Michael Jackson
I am trying to write our data into an HDF5 file that will be easy to view in HDFView. I am currently having an issue writing the dimensions of the data set in the correct order so I am looking for some information help me get straight what I need to write out. Example: 3D data set with

Re: [Hdf-forum] VL string attribute in Fortran

2014-02-05 Thread Pierre de Buyl
Dear Scot, Thanks for this code! It works fine with Fortran 2003 enabled (gfortran 4.8) Is the addition of vl-string support for attributes in Fortran only for Fortran 2003? I couldn't deduce it from http://www.hdfgroup.org/HDF5/doc/RM/RM_H5A.html#Annot-Write Regards, Pierre On Wed, Feb 05,

Re: [Hdf-forum] VL string attribute in Fortran

2014-02-05 Thread Scot Breitenfeld
Yes, writing a vl string attribute is only available for F2003; a f90 h5awrite_vl_f is not available (whereas for a dataset h5dwrite_vl_f is available) Scot From: Hdf-forum hdf-forum-boun...@lists.hdfgroup.org on behalf of Pierre de Buyl

Re: [Hdf-forum] VL string attribute in Fortran

2014-02-05 Thread Pierre de Buyl
Thanks for the answer :-) Pierre On Wed, Feb 05, 2014 at 07:52:27PM +, Scot Breitenfeld wrote: Yes, writing a vl string attribute is only available for F2003; a f90 h5awrite_vl_f is not available (whereas for a dataset h5dwrite_vl_f is available) Scot