Hi HDF users, I am trying to read string characters such as quality flag (good, bad, caution etc) from H5 data using matlab, similar way as the data read read in idl, however it doesn't work. For an E.g FILE_NAME='acos_L2s_091101_17_Production_v050050_L 2s2800_r01_PolB_110305035627.h5' file_id = H5F.open (FILE_NAME, 'H5F_ACC_RDONLY', 'H5P_DEFAULT'); Flag_NAME = 'RetrievalResults/master_quality_flag'; Flag_id = H5D.open (file_id, Flag_NAME); flag=H5D.read (data_id,'H5T_NATIVE_DOUBLE', 'H5S_ALL', 'H5S_ALL', 'H5P_DEFAULT'); (Doesn't work)
OR flag=H5D.read (data_id,'H5T_C_S1', 'H5S_ALL', 'H5S_ALL', 'H5P_DEFAULT'); (not working) I have also tried with H5T_NATIVE_CHAR AND H5T_NATIVE_STRING instead of H5T_NATIVE_DOUBLE, but not worked, Appreciate your help, -- --------------------------------------------------------------------------------- Kunhikrishnan T, PhD Res. 2008 Baltimore Road, E33, Rockville, MD, USA Phone 757-788-8855 -----------------------------------------------------------------------------
_______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
