Removing points form a generic grid variable
Added by Antonio Schiappa Pietra over 5 years ago
Hi!
I am trying to make this generic grid variable (2) have the same number of points in two different files. The only meaningful level of this variable is level 1, as you can see from both pictures attached.
File result_05.nc
Grid coordinates : 1 : generic : points=1 2 : generic : points=4 Vertical coordinates : 1 : surface : levels=1
File result_12.nc
Grid coordinates : 1 : generic : points=1 2 : generic : points=3 Vertical coordinates : 1 : surface : levels=1
I thought of delgridcell, but I guess that would delete the whole coordinate right?
Can someone help me?
Thank you so much!
Regards,
António
2014_05.PNG (89.4 KB) 2014_05.PNG | |||
2014_12.PNG (81 KB) 2014_12.PNG | |||
result_05.nc (158 KB) result_05.nc | |||
result_12.nc (174 KB) result_12.nc |
Replies (1)
RE: Removing points form a generic grid variable - Added by Ralf Mueller over 5 years ago
hi!
your input does not have any horizontal location, one TIME
and DEPTH
. That's why CDO interpretes DEPTH
as a horizontal grid, but since there are no coordinates, its type is identified as generic
. Basicalle your input is not CF-conform. you need to provide a horizontal location even if these values are global means and a single location doesn;t really make sense, sorry.
hth
ralf