Project

General

Profile

Unssupported Grid Type: define Cartesian Grid?

Added by David Gampe about 7 years ago

Hi,

I am struggling with this for a while and read many posts about this in this forum, however could not find an answer yet. When running several commands I receive the 'unsupported grid type: generic' error. The data I have is a regular, cartesian grid based on UTM (Zone 32N), however with the coordinates of the center of each cell in lat and lon. So far, i tried to define the grid in cdo somehow, without success. I tried to create a grid file manually (using the corresponding lon & lat information), but I don't know which is a valid gridtype to enter. The closest I could get was using 'curvilinear' (as in the example file), which of course led to false location of the grid points. I attached a file including the current grid description and a small subset of my data set.

cdo setgrid,griddes.txt pr_tmp2.nc out.nc

Any help would be greately appreciated, also any work-arround etc!

Cheers and thank you in advance,
David


Replies (2)

RE: Unssupported Grid Type: define Cartesian Grid? - Added by Karin Meier-Fleischer about 7 years ago

Hi David,

the gridtype 'curvilinear' is correct. But it looks like your destination grid in griddes.txt is not correct because your out.nc is streaky which indicates wrong number of x- and y-grid points (see attached tout_nc.tiff). You have to know the right grid description especially the correct xvals and yvals.

By the way, to make sure to use the new grid lats and lons delete the old. If not, it would lead to move the old to lat_2 and lon_2 when using 'cdo setgrid':

 ncks -O -x -v lon,lat pr_tmp2.nc tt.nc

Then set the new grid like you did:

 cdo setgrid,griddes.txt tt.nc tout.nc

But you need a correct griddes.txt file.

Bye,
Karin

pr_tmp2_nc.tiff (323 KB) pr_tmp2_nc.tiff original data file
tout_nc.tiff (357 KB) tout_nc.tiff ncview plot of tout.nc
tout.nc (921 KB) tout.nc output of 'cdo setgrid,griddes.txt tt.nc tout.nc'

RE: Unssupported Grid Type: define Cartesian Grid? - Added by David Gampe about 7 years ago

Hi Karin,

thanks for your help! I am not sure what and where I did something wrong with the lats & lons, but that's another story. :)

Best,
David

    (1-2/2)