All I'd add to Raj’s answer ...

Published by

All I'd add to Raj’s answer is to recommend h5py if you're working with plain HDF5 files (a netCDF4 file is an HDF5 file under the hood).  Also, xarray is nice for working with netCDF4 files.