Project

General

Profile

Removing points form a generic grid variable

Added by Antonio Schiappa Pietra over 4 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


Replies (1)

RE: Removing points form a generic grid variable - Added by Ralf Mueller over 4 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

    (1-1/1)