A Tuesday 26 October 2010 09:53:38 Herrero Vincent escrigué:
> 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.

If you are worried about size consumption, using compression in 
combination with the shuffle filter may significantly reduce the size of 
the additional 'mask' (supposing that the mask is sparse enough).

-- 
Francesc Alted

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to