Convert hdf5 to netcdf4 in bash, R, python or NCL?

眉间皱痕 提交于 2019-12-02 11:08:04

问题


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



来源:https://stackoverflow.com/questions/48864357/convert-hdf5-to-netcdf4-in-bash-r-python-or-ncl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!