Project

General

Profile

Unsupported grid type: generic

Added by Lei Wang over 6 years ago

Dear CDO users,

I am trying to use remapdis command to get a .nc data from unstructured grid to latlon grid, but I meet an error:

cdo remapdis,r180x90 -selvar,UE GRIST.G4.TC2.rk3.PV2.ADV2.te.00000-00000.nc 0.nc
cdo remapdis: Started child process "selvar,UE GRIST.G4.TC2.rk3.PV2.ADV2.te.00000-00000.nc (pipe1.1)".
cdo remapdis (Abort): Unsupported grid type: generic

Please help me in this regard.
The data has been attached for the reference.
Thank you very much.


Replies (2)

RE: Unsupported grid type: generic - Added by Karin Meier-Fleischer over 6 years ago

Hi Lei,

the data file does not have lon and lat coordinates but lat_ne and lon_ne therefore the variable attribute 'coordinates' must be added. Also the units of lat_ne and lon_ne are not correct and must be changed.

ncatted -O -a coordinates,UE,o,c,"lat_ne lon_ne" \
           -a units,lat_ne,o,c,"degrees_north" \
           -a units,lon_ne,o,c,"degrees_east" GRIST.G4.TC2.rk3.PV2.ADV2.te.00000-00000.nc tmp.nc

cdo remapdis,r180x90 -selvar,UE tmp.nc 0.nc

-Karin

RE: Unsupported grid type: generic - Added by Lei Wang over 6 years ago

Thank you Karin, Thank you very much!

Lei

    (1-2/2)