Thanks for walking me through this. I'll need to go back to the drawing
board - there are various ways that I can discover the structure that I'm
trying to capture in the compound datatype. Assuming that I've populated
the datatype with all the necessary fields, do the other arguments to
H5Dwrite()
look appropriate?



On Fri, Jul 19, 2013 at 2:40 PM, Gerd Heber <[email protected]> wrote:

>  Ok, let’s go back to the beginning. Maybe I didn’t understand your
> problem****
>
> to begin with.****
>
> ** **
>
> You’ve created a dataset D with compound file type FT that has members A,
> B, C.****
>
> Later you’d like to write component A to D.****
>
> You create a memory compound type MT with component A and write****
>
> your buffer to D.****
>
> ** **
>
> Once you’ve created a dataset with a certain file type, you cannot change
> that type.****
>
> That is, if I’d like to write component E to D, I’d be out of luck.****
>
> There is no “ADD COULMN” – like construct with compound datatypes.****
>
> ** **
>
> G.****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> *From:* Hdf-forum [mailto:[email protected]] *On
> Behalf Of *Josiah Slack
> *Sent:* Friday, July 19, 2013 1:32 PM
>
> *To:* HDF Users Discussion List
> *Subject:* Re: [Hdf-forum] writing part of a compound datatype****
>
> ** **
>
> ** **
>
> ** **
>
> On Fri, Jul 19, 2013 at 2:06 PM, Gerd Heber <[email protected]> wrote:**
> **
>
> Josiah, maybe I’m misreading your code, but your compound type ****
>
> in the file has only one member (“dummy”).****
>
> Later you are trying to write a member whose name is contained****
>
> in the valueName variable. Unless that name is “dummy”, the****
>
> H5Dwrite call is not going to find anything suitable to write to.****
>
>  ****
>
> G.****
>
>  ****
>
> *I've got a compound data type that I intended to be associated with the
> file (the one I'm calling compoundType), and another compound type in a
> loop that is intended to be an in-memory type (what I'm calling valueDT).
> In my loop, I do H5Tinsert() operations on both compound datatypes. Do I
> need to make a new dataset for compoundType inside the loop?* ****
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
>
> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
> ****
>
> ** **
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> [email protected]
>
> http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
>
>
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org

Reply via email to