Unsupported grid type
Added by David Fuchs over 12 years ago
Hi there,
I have a netcdf file (created with netcdf version 4.2.1) which I am trying to interpolate horizontally to a regular lat lon grid.
The dimensions of the data are (time, height, y, x) though height is of size 1.
The command that I run is:
cdo gennn,grid.txt MOM_1950-1969_tasmean.nc weights.nc
The error that I get is:
Warning (cdfScanVarAttributes) : NetCDF: Variable not found - areacella
cdo gennn (Abort): Unsupported grid type: generic
When I remove the height dimension the command works properly but this is not an ideal solution given the application that I am working on is not just a script.
Attached input netcdf header,
Thanks in advance,
David
header.txt (2.15 KB) header.txt |
Replies (2)
RE: Unsupported grid type - Added by David Fuchs over 12 years ago
Update:
Doing cdo sinfov on the file
cdo sinfov CCRC_NARCliM_MOM_1950-1969_tasmean.nc
File format: netCDF4
-1 : Institut Source Name Time Typ Grid Size Num Levels Num
1 : unknown unknown tasmean var F32 30960 1 1 1
2 : unknown unknown time_bnds var F64 2 2 1 2
Horizontal grids :
1 : curvilinear > size : dim = 30960 nx = 215 ny = 144
lon : min = -179.997635 max = 179.998611 degrees_east
lat : min = -55.7199898 max = 14.5788212 degrees_north
available : xvals yvals
2 : generic > size : dim = 2
Vertical grids :
1 : height m : 2
2 : surface : 0
Time axis : 240 steps
RefTime = 1949-12-01 00:00:00 Units = hours Calendar = STANDARD
Now I see that there is indeed a "generic" horizontal grid which I assume relate to the time bands variable.
If this is the case, how can I prevent CDO from attempting to interpolate the time_bnds variable?
Cheers,
David
RE: Unsupported grid type - Added by David Fuchs over 12 years ago
Resolved.
This is not a CDO problem but rather an issue with the input file.
The problem is/was that the time_bnds variable is not assigned to the time variable.
(the time variable should have an attribute: time:bounds = "time_bnds"