[Scilab-users] HDF5 file : how to access HDF5 compound elements

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Sep 3 10:14:27 CEST 2015


Le 09/02/2015 04:20 PM, Calixte Denizet a écrit :
> Hi Antoine,
>
> Probably something like:
> d=xyg.data(0);
> d.elem1
> d.elem2
>

Thanks Calixte, it's almost what I was looking for ( data(0) -> data(1) ).
I think that my hdf5 file is not containing what I was looking for and 
it might even be corrupted!
It seems to efficiently crash scilab 6.0.

I'll fill a bug.

Antoine

> Please provide me a file (you can send it to me privately), it could 
> have some bugs.
>
> Best regards
>
> Calixte
>
> On 02/09/2015 14:03, amonmayr at laas.fr wrote:
>> Hi all,
>>
>> Almost everything is in the title: I am trying to load in scilab the 
>> content of an HDF5 file and some of the datasets are of type compound 
>> of array of variable length:
>>
>> h5dump(xyg)
>> DATASET "XY Graph" {
>>    DATATYPE H5T_COMPOUND {
>>             H5T_VLEN { H5T_IEEE_F64LE } "elem1";
>>             H5T_VLEN { H5T_IEEE_F64LE } "elem2";
>>    }
>>    DATASPACE SCALAR
>>    STORAGE_LAYOUT {
>>       CONTIGUOUS
>>       SIZE 0
>>       OFFSET 18446744073709551615
>>    }
>>    DATA {
>>    (0): {
>>       (),
>>       ()
>>    }
>>    }
>> }
>>
>>
>> How can I access elem1 and elem2?
>> I tried things like:
>>     xyg.data
>>     xyg.elem1
>>     xyg.data.elem1
>>     xyg.compound.whatever
>> without success...
>>
>> Any clue?
>>
>> Cheers,
>>
>> Antoine
>>
>> PS: I can give you an example hdf5 file if needed, but it's quite big!
>>
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>
>


-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the users mailing list