Hi,
There are two options:
* define a struct which includes the array of floats and write the
data as a compound. Disadvantage, as always you can read individual
members of your structure, but this goes much faster is your structure
is small. Thus if you also access the data of your structure without the
float-array data then do not use this option, but
* write the float-array data to a separate dataset, with the fastest
axis the size of the float-array and the slower axis the number of
structs that write.
Note that your code is not portable to 64-bit, it now only works on
32-bit environments.
Greetings, Richard
On 11/22/2011 03:21 PM, jwomble wrote:
Hello,
I have an array of structs that I need to write to a dataset. One of the
members of the struct is a pointer to an array of floats. Right now I am
creating a compound datatype and treating the pointer as an unsigned int,
and this works, but the pointer information is obviously useless data. Is
there a way to write this array, but skip the pointer memeber?
Here is what I am currently doing:
Thanks!
--
View this message in context:
http://hdf-forum.184993.n3.nabble.com/How-to-skip-a-member-in-a-struct-tp3527822p3527822.html
Sent from the hdf-forum mailing list archive at Nabble.com.
_______________________________________________
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