"Grid type >generic< unsupported!" when using remapcon
Added by Roberto Kretschmer about 14 years ago
Hi,
I'm trying to remap EDGAR emission fluxes from a regular lat/lon grid to WRF Lambert Conical Conformal grid.
I'm using the command:
cdo-1.4.6 remapcon,grid.nc edgar_example.nc test.nc
I get the error message:
Error (gridToCurvilinear) : Grid type >generic< unsupported!
When using a standard regular target grid it works fine:
cdo-1.4.6 remapcon,r100x100 edgar_example.nc test.nc
So I suppose it's an issue with my target grid definition file grid.nc, but I can't figure out what it is. I defined the grid in SCRIP format as suggested in the manual:
ncdump -h grid.nc
netcdf grid {
dimensions:
grid_size = 651 ;
grid_xsize = 21 ;
grid_ysize = 31 ;
grid_corners = 4 ;
grid_rank = 2 ;
variables:
int grid_dims(grid_rank) ;
float grid_center_lat(grid_ysize, grid_xsize) ;
grid_center_lat:units = "degrees" ;
grid_center_lat:bounds = "grid_corner_lat" ;
float grid_center_lon(grid_ysize, grid_xsize) ;
grid_center_lon:units = "degrees" ;
grid_center_lon:bounds = "grid_corner_lon" ;
int grid_imask(grid_ysize, grid_xsize) ;
grid_imask:units = "unitless" ;
grid_imask:coordinates = "grid_center_lon grid_center_lat" ;
float grid_corner_lat(grid_ysize, grid_xsize, grid_corners) ;
grid_corner_lat:units = "degrees" ;
float grid_corner_lon(grid_ysize, grid_xsize, grid_corners) ;
grid_corner_lon:units = "degrees" ;
// global attributes:
:title = "WRFLCC" ;
}
Please help!
Regards,
Roberto
Replies (2)
RE: "Grid type >generic< unsupported!" when using remapcon - Added by Uwe Schulzweida about 14 years ago
Your SCRIP description files is inconsistent. The variable grid_dims have to contain the length of each grid axis. The correct values are:
grid_dims = 21, 31;But it contains:
grid_dims = 1, 2;
Regards, Uwe
RE: "Grid type >generic< unsupported!" when using remapcon - Added by Roberto Kretschmer about 14 years ago
This solved the problem.
Thank you!