Error (cdf_close) : NetCDF: HDF error
Added by Jose Morales over 5 years ago
Hi,
I want to use cdo to export a .nc file to a .grb file. When I run the code as
cdo -f grb setltype,100 -chparam,-1,11 hus_6.nc hus_7.grb
But got the errors as
cdo setltype: Started child process "chparam,-1,11 hus_6.nc (pipe1.1)".
GRIB_API ERROR : unable to find units to set stepRange=733773
!!! failed call to grib_set_long( grib_handle* h, "endStep", 733773) !!!
stream_gribapi.c at line 1778: my_grib_set_long(gh, "endStep", endStep) failed: Unable to set step
HDF5-DIAG: Error detected in HDF5 (1.8.16) thread 139895754889600:
#000: ../../../src/H5T.c line 1716 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type
Error (cdf_close) : NetCDF: HDF error
How can I fix this problem?. I attached the file hus_6.nc
Thank you in advance
Jose
Replies (5)
RE: Error (cdf_close) : NetCDF: HDF error - Added by Ralf Mueller over 5 years ago
hi!
with latest CDO I can convert your netcdf file to grib1 with
cdo -f grb -copy hus_6.nc hus.grbwitout issues.
hth
ralf
RE: Error (cdf_close) : NetCDF: HDF error - Added by Jose Morales over 5 years ago
Hi Ralf,
Great!! do you know where I can find instructions to install that version in Ubuntu 16.04?
Jose
RE: Error (cdf_close) : NetCDF: HDF error - Added by Ralf Mueller over 5 years ago
there are several options to install CDO on Linux-based systems: see Linux_Platform or Anaconda
The easiest is to use the debian package, but that will provide an older version (still it might be sufficient for your). I guess you should check out this first.
hth
ralf
RE: Error (cdf_close) : NetCDF: HDF error - Added by Jose Morales over 5 years ago
Hey Ralf,
Thank you so much, you really helped me. I just installed cdo using Anaconda and it solved the problem.
Jose
RE: Error (cdf_close) : NetCDF: HDF error - Added by Ralf Mueller over 5 years ago
you are welcome - good to know that it works for you