ClimateUnboxed
ClimateUnboxed

Reputation: 8087

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

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, cdo, NCL or python ?

Upvotes: 3

Views: 10747

Answers (3)

Antonio S. Cofiño
Antonio S. Cofiño

Reputation: 374

with netcdf-c library you can:

$ nccopy in.h5 out.nc

Upvotes: 7

Asraful
Asraful

Reputation: 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.

Upvotes: 3

N1B4
N1B4

Reputation: 3453

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

Upvotes: 1

Related Questions