Project

General

Profile

need help ! cdo cat *.nc **.nc error

Added by ying yang about 6 years ago

Hi all, I have been trying to combine multiple netcdf files into a single netcdf file, in order for further processing. The files have same variables, just separated based on times.

code:cdo cat pr_wtr.*.nc pr_wtr1980-2017.nc

error:
cdo cat (Warning): Input streams have different parameters!
cdo cat (Abort): Grid size of the input parameters do not match!

something that maybe useful:
File format: netCDF
-38 : Institut Source Ttype Levels Num Gridsize Num Dtype : Parameter name
1 : unknown unknown instant 1 1 1 1 I16 : head
2 : unknown unknown instant 1 1 10512 2 I16 : pr_wtr
Grid coordinates :
1 : generic > size : dim = 1 nx = 0 ny = 0
2 : lonlat > size : dim = 10512 nx = 144 ny = 73
lon : first = 0 last = 357.5 inc = 2.5 degrees_east circular
lat : first = 90 last = -90 inc = -2.5 degrees_north
Vertical coordinates :
1 : surface : 0
Time coordinate : 365 steps
RefTime = 0001-01-01 00:00:00 Units = days Calendar = standard

File format: netCDF
-37 : Institut Source Ttype Levels Num Gridsize Num Dtype : Parameter name
1 : unknown unknown instant 1 1 1 1 I16 : head
2 : unknown unknown instant 1 1 10512 2 I16 : pr_wtr
Grid coordinates :
1 : generic > size : dim = 1 nx = 0 ny = 0
2 : lonlat > size : dim = 10512 nx = 144 ny = 73
lon : first = 0 last = 357.5 inc = 2.5 degrees_east circular
lat : first = 90 last = -90 inc = -2.5 degrees_north
Vertical coordinates :
1 : surface : 0
Time coordinate : 366 steps
RefTime = 0001-01-01 00:00:00 Units = days Calendar = standard

this is the result of two different nc file


Replies (2)

RE: need help ! cdo cat *.nc **.nc error - Added by Karin Meier-Fleischer about 6 years ago

Hi,

I don't know what the variable head is about but I would recommend to select the variable pr_wtr first and then cat the files.

-Karin

RE: need help ! cdo cat *.nc **.nc error - Added by ying yang about 6 years ago

thank you for your reply!
instead of using cdo ,i use ncl to read these .nc files.because the order of the variables are not the same.

    (1-2/2)