First install Homebrew on your mac computer.
To do that, open terminal and paste following command-line :
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Follow instructions displayed in terminal window.
Reboot your computer.
Now you can install new command line derived from linux system.
Then you have to install package to read hdf5 file format.
Paste on terminal :
brew install hdf5
it will install hdf5 and all the dependencies on your system.
Now you can acces to .h5 file content as .h5 files are such of kind of matrix files containing numeric values.
First, you have to understand how your h5 file is structured.
To do that, type this command line : h5ls -r file_name.h5
.
You will get the different path of your matrix data.
Then, you can dump the file content to read the numerical values with this command line :
h5dump -d "/path_name" file_name.h5
Enjoy the great power of linux command line on your mac computer !
Descriptive and synthetic, precisely what I needed, very useful. Perhaps you want to change the file extension to .md so that github renders it correctly. Thanks!