Project

General

Profile

Remap but with error: Unsupported grid type: generic

Added by Sam United about 7 years ago

Hi friends,
I have a problem about remapping from a 0.5 degree netcdf files to a netcdf files in 3.75*2.5 degree. The errors are cdo remapbil (Abort): Unsupported grid type: generic. the code are:
cdo remapbil,mygrid soilcode.nc result.nc
mygrid file is like following:
gridtype =lonlat
xsize =96
ysize=72
xfirst=0
xinc=3.75
yfirst=-89.5
yinc=2.5
I also upload my inputfiles.
Although i have tried the related topic about this, but it doesn't work.


Replies (4)

RE: Remap but with error: Unsupported grid type: generic - Added by Uwe Schulzweida about 7 years ago

Here is the header of your NetCDF file:

dimensions:
    LONGITUDE = 720 ;
    LATITUDE = 360 ;
    TIME = 1 ;
variables:
    float SOIL(TIME, LATITUDE, LONGITUDE) ;
        SOIL:units = "type" ;
        SOIL:_FillValue = 1.e+35f ;
    float LONGITUDE(LONGITUDE) ;
        LONGITUDE:units = "degree" ;
    float LATITUDE(LATITUDE) ;
        LATITUDE:units = "degree" ;
    float TIME(TIME) ;
        TIME:units = "type" ;
The units attribute of the coordinates LONGITUDE and LATITUDE is not conform to the CF standard. The following NCO command changes the units to the CF standard:
ncatted -a units,LONGITUDE,o,c,"degreeE" -a units,LATITUDE,o,c,"degreeN" soilcode.nc

RE: Remap but with error: Unsupported grid type: generic - Added by Sam United about 7 years ago

Hi Uwe,
Thank you very much. It works now.
cheers

RE: Remap but with error: Unsupported grid type: generic - Added by Sam United about 7 years ago

Hi Uwe,
Now I have another problem. I want to use another 'mygrid' in remapping. I attached it in 'mygrid.txt', it is in 3.75*2.5 degree for HadCM3LC. but I can not use the format mentioned as
gridtype =lonlat
xsize =96
ysize=72
xfirst=0
xinc=3.75
yfirst=-89.5
yinc=2.5
It will lose some grid cell. so I want to ask how to organize the 'mygrid' file. Thank you.
Sam

    (1-4/4)