Hi Josiah,
On Jan 10, 2011, at 3:00 PM, Josiah Slack wrote:
> Hi folks -
> I've got another naive question about building Datatypes. I've got a Datatype
> that I'm forming from arrays of doubles. Ultimately, I'll be writing an
> array of this Datatype. The complicating factor is that the arrays of
> doubles won't necessarily have the same dimensions from one instance of the
> Datatype to the next.
Sounds like you might want a variable-length sequence of doubles as
your datatype. Look at the documentation for H5Tvlen_create()...
Quincey
> Here's a little pseudo-code to more concretely illustrate what I mean:
>
> Datatype {
> double[] a;
> double[][] b;
> double[] c;
> };
>
> Datatype[] allData = {
> { a = {1., 2., 3.} } b = {{1.,2.},{3.,4.}}, c = {1.} },
> { a = {1.,} b = {{1.}}, c = {1., 2.} },
> { a = {}, b = {{1.}, {2.}}, c = {1., 2., 3.} }
> };
>
> I'm trying to use the Java H5 class to achieve this.
>
> Thanks in advance for your time.
>
> -Josiah
>
> --
> Josiah Slack
> MIT Lincoln Laboratory
> Group 36
> [email protected]
> Ph: (781) 981-1754
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org