If you're familiar with the command line, then the commands h5ls -r myfile.h5 | less h5dump myfile.h5 | less will get you started. Otherwise, I am a big fan of using h5py [0] from python for post-processing and plotting. I also know that Matlab [1] supports hdf5 files with a simple interface.
If you're not sure whether the file is a (not corrupt) hdf5 file, you can try file myfile.h5 If it doesn't say this, then your file is broken: myfile.h5: Hierarchical Data Format (version 5) data I'm not familiar with any of the software packages you mentioned, so I can't comment on those. Paul [0] http://alfven.org/wp/hdf5-for-python/ [1] http://www.mathworks.se/help/techdoc/ref/h5read.html Example for h5py: ~ % ipython In [1]: import h5py In [2]: ff = h5py.File('./K1VHR_01JAN2010_0000_L02_BRT.h5', 'r') In [3]: ff.keys() Out[3]: [u'BRT', u'PRODUCT_INFORMATION', u'PRODUCT_METADATA'] In [4]: data = ff['BRT/BRT_Dataset'][:] In [5]: data.shape Out[5]: (1400, 1400) In [6]: data[0, 0] Out[6]: 1e+08 In [7]: data[:2, :2] Out[7]: array([[ 1.00000000e+08, 1.00000000e+08], [ 1.00000000e+08, 1.00000000e+08]], dtype=float32) On 27. mars 2012, at 07:34, Bhavini Solanki wrote: > Hi, > I am trying to read data which is in .h5 format. I've tried to open it using > softwares like Grads, Envi, Ferret etc. but none of them could open it. can > you please help me to read this data??? > an example file is attached herewith for your reference. > > > Thanks & Regards, > > Bhavini Solanki > Indian Center for Climate and Societal Impacts Research (ICCSIR) > Navrangpura, > Ahmedabad 380 009, > Gujarat, > India > Alternate E-mail: [email protected] > [email protected] > > <K1VHR_01JAN2010_0000_L02_BRT.h5>_______________________________________________ > 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
