compound dataset with extra dimension on one column

Dear all,

I am trying to build a large 2D compound dataset that contains only one column that has an extra dimension (2D). This is the column 'iso_massf' in the snapshot below (using HDFView):

I have been able to construct the whole dataset without the 'iso_massf' column, but I am struggling when trying to include it. I have seen some examples about variable-length datatypes on the API (http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-fortran.html\) but I need to have a compound datatype, not a variable-length one. Is there some example showing how to do that?

Any help would be much appreciated.
Thanks a lot,

Jean-Claude

Hi again,

also, I should mention another difficulty: the number of elements in "iso_massf" is dynamic and is determined at runtime.

Thanks again,

Jean-Claude

ยทยทยท

On Aug 20, 2013, at 2:03 AM, Jean-Claude Passy <jcpassy@gmail.com> wrote:

Dear all,

I am trying to build a large 2D compound dataset that contains only one column that has an extra dimension (2D). This is the column 'iso_massf' in the snapshot below (using HDFView):

<Screen Shot 2013-08-20 at 1.48.19 AM.png>

I have been able to construct the whole dataset without the 'iso_massf' column, but I am struggling when trying to include it. I have seen some examples about variable-length datatypes on the API (http://www.hdfgroup.org/ftp/HDF5/examples/examples-by-api/api18-fortran.html) but I need to have a compound datatype, not a variable-length one. Is there some example showing how to do that?

Any help would be much appreciated.
Thanks a lot,

Jean-Claude