cdo remapbil (Abort): Unsupported grid type: generic

Added by kyozo ueyoshi over 11 years ago


I'm trying to remap the grid of the attached nc file to a regular lon-lat grid.

The cdo sinfov command returns the following message:

cdo sinfov

File format: netCDF
-1 : Institut Source Varname Time Typ Grid Size Num Levels Num
1 : unknown unknown nav_lat con F32 27118 1 1 1
2 : unknown unknown nav_lon con F32 27118 1 1 1
3 : unknown unknown sst var F32 27118 1 1 1
Horizontal grids :
1 : generic > size : dim = 27118 nx = 182 ny = 149
Vertical grids :
1 : surface : 0
Time axis : 12 steps
RefTime = 0001-12-15 00:00:00 Units = seconds Calendar = 365DAYS
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
0002-01-14 10:00:00 0002-02-13 20:00:00 0002-03-16 06:00:00 0002-04-15 16:00:00
0002-05-16 02:00:00 0002-06-15 12:00:00 0002-07-15 22:00:00 0002-08-15 08:00:00
0002-09-14 18:00:00 0002-10-15 04:00:00 0002-11-14 14:00:00 0002-12-15 00:00:00
cdo sinfov: Processed 3 variables over 12 timesteps. ( 0.00s )

If I attempt remap the "generic" grid to a lon-lat grid using the comand
it returns the following error message:

cdo remapbil,r360x180

cdo remapbil (Abort): Unsupported grid type: generic

It seems to me that the cdo remap command is not able to handle the "generic" grid of this file.
I was wondering if there is a cdo command that can remap this "generic" grid to a regular grid.
I tried with cdo version 1.4.4 but was not successful.
If there is no cdo command to do this, I'd appreciate any suggestions as to how to accomplish
my objective by using some other software/methods.

Best Regards,

Kyozo Ueyoshi (1.45 MB) SST input data nc file used in NEMO OGCM.

Replies (1)

RE: cdo remapbil (Abort): Unsupported grid type: generic - Added by Uwe Schulzweida over 11 years ago

Dear Kyozo,

Generic grid means that the variables have either no grid information or the grid information is not supported in CDO. In both cases horizontal interpolation is not possible with CDO.
Your netCDF file contains the lon and lat information for the grid in the variables nav_lon and nav_lat. But CDO can't find them because these variables are not assigned to the data variable sst. You can use the following NCO command to add the missing attribute:

ncatted -a coordinates,sst,c,c,"nav_lon nav_lat"