Can you instead use a time stamp on each data value? Then when you have no 
data, just don't write anything.

Scott

From: [email protected] [mailto:[email protected]] On 
Behalf Of Herrero Vincent
Sent: Tuesday, October 26, 2010 3:54 AM
To: [email protected]
Subject: Re: [Hdf-forum] How to write empty or missing values in a dataset ?


Joe, Quincey,
Thanks for your answers.
I will try to see if we can get a "pseudo-null" value for each sensors we are 
gathering data from.
Otherwise I can always define a dataset using a H5T_COMPOUND data type as 
follow:

typedef struct s1_t
 {
    unsigned char emitted; // if 0 then no-val
    float  value;
 } s1_t;

s1_tid = H5Tcreate(H5T_COMPOUND, sizeof(s1_t));
H5Tinsert(s1_tid, "emitted", HOFFSET(s1_t, emitted), H5T_NATIVE_UCHAR);
H5Tinsert(s1_tid, "value", HOFFSET(s1_t, value), H5T_NATIVE_FLOAT);

But this solution is more size consuming.

Best Regards,

Vincent


________________________________
This e-mail and any files transmitted with it may be proprietary and are 
intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of ITT Corporation. 
The recipient should check this e-mail and any attachments for the presence of 
viruses. ITT accepts no liability for any damage caused by any virus 
transmitted by this e-mail.
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to