Is there a quick and simple way to convert HDF5 files to netcdf(4) from the command line in bash? Alternatively a simple script that handle such a conversion automatically in R, NCL or python ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
with netcdf-c library you can: $ nccopy in.h5 out.nc
回答2:
NCL's ncl_convert2nc
function is my go-to for this type of problem: https://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml
回答3:
You can easily convert hdf5 format data to nedtcdf-4 data by this command which is given below:
ncks inputfile_name.h5 outputfile_name.nc
Note: this inputfile.h5 data I have got from mosdac website.