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

后端 未结 3 1413
你的背包
你的背包 2021-01-25 10:50

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

相关标签:
3条回答
  • 2021-01-25 11:22

    NCL's ncl_convert2nc function is my go-to for this type of problem: https://www.ncl.ucar.edu/Document/Tools/ncl_convert2nc.shtml

    0 讨论(0)
  • 2021-01-25 11:31

    with netcdf-c library you can: $ nccopy in.h5 out.nc

    0 讨论(0)
  • 2021-01-25 11:31

    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.

    0 讨论(0)
提交回复
热议问题