Hi,
I am writing my data as (1.6.x):
status = H5Dwrite(dataset, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, (double*)data);
Checking back as:
hid_t dataset = H5Dopen(file, name.c_str());
if(dataset<0) fail();
hid_t datatype = H5Dget_type(dataset);
hid_t native_type = H5Tget_native_type(datatype, H5T_DIR_ASCEND);
I am frustrated to find that native_type is nothing from what's listed in the docu:
"H5Tget_native_type selects the matching native datatype from the following list:
H5T_NATIVE_CHAR
H5T_NATIVE_SHORT
H5T_NATIVE_INT
H5T_NATIVE_LONG
H5T_NATIVE_LLONG
H5T_NATIVE_UCHAR
H5T_NATIVE_USHORT
H5T_NATIVE_UINT
H5T_NATIVE_ULONG
H5T_NATIVE_ULLONG
H5T_NATIVE_FLOAT
H5T_NATIVE_DOUBLE
H5T_NATIVE_LDOUBLE"
It is just a value from the moon 201326869 while all the above are in the range 201326600-201326636
It is not the first time I am stuck with the the HDF5 datatypes and I wonder what I miss / why it is so confusing. In particular, I find telling H5T_INTEGER from H5T_NATIVE_INT not something to care about by a regular user.
Thanks for any clarifications,
with regards,
···
--
Dominik Szczerba, Ph.D.
Biomedical Simulation Group
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi
----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.