Project

General

Profile

cdo -mergetime : Open failed

Added by Yousef Albuhaisi over 3 years ago

Hi, I am trying to combine a number of netcdf files using the command < cdo -mergetime *.nc out.nc >

but I got this error

cdo mergetime: Open failed on >SMAP_L4_C_mdl_20150401T000000_Vv5040_001_HEGOUT.nc<
Unsupported file structure
HDF5-DIAG: Error detected in HDF5 (1.8.10-patch1) thread 0:
#000: H5T.c line 1759 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type

Error (cdf_close) : NetCDF: HDF error
:/scratch-shared/yousefa/NEE/nee$ cdo -mergetime *.nc out.nc nc_close

cdo mergetime: Open failed on >SMAP_L4_C_mdl_20150401T000000_Vv5040_001_HEGOUT.nc<
Unsupported file structure
HDF5-DIAG: Error detected in HDF5 (1.8.10-patch1) thread 0:
#000: H5T.c line 1759 in H5Tclose(): not a datatype
major: Invalid arguments to routine
minor: Inappropriate type

Error (cdf_close) : NetCDF: HDF error

what could be th problem?


Replies (2)

RE: cdo -mergetime : Open failed - Added by Karin Meier-Fleischer over 3 years ago

Hi Yousef,

the files are HDF5 with grouped variables which CDO cannot process (only GRIB and netCDF), see documentation https://code.mpimet.mpg.de/projects/cdo/embedded/cdo.pdf#chapter.1

NetCDF   datasets are only supported for the classic data model and arrays up to 4 dimensions. 
         These dimensions should only be used by the horizontal and vertical grid and the time. 
         The NetCDF attributes should follow the GDT, COARDS or CF Conventions.

-Karin

    (1-2/2)