Project

General

Profile

cdo sellonlatbox (Abort): Unsupported grid type!

Added by Rafael Dido almost 12 years ago

HI,

I have the same issue as
https://code.zmaw.de/boards/1/topics/752

I did try to figure it out by following the suggestion,
but it still doesn't work.
I got the following message:

cdo sellonlatbox: Unsupported grid type: generic
cdo sellonlatbox (Abort): Unsupported grid type!

It looks like my netCDF contain data on a regular lonlat grid but the attributes
describing the grid do not follow the CF convention.
How can i solve this problem and enable to use sellonlatbox?

Thanks
Raf

*dimensions:*
    lon = 360 ;
    lat = 180 ;
    time = UNLIMITED ; // (4929 currently)
variables:
    double lon(lon) ;
        lon:standard_name = "longitude" ;
        lon:long_name = "longitude" ;
        lon:units = "degrees_east" ;
        lon:axis = "X" ;
    double lat(lat) ;
        lat:standard_name = "latitude" ;
        lat:long_name = "latitude" ;
        lat:units = "degrees_north" ;
        lat:axis = "Y" ;
    double time(time) ;
        time:standard_name = "time" ;
        time:units = "days since 1990-01-01 00:00:00" ;
        time:calendar = "standard" ;
    int date(time) ;
        date:long_name = "gregorian date" ;
        date:units = "yyyymmdd" ;
    int yyyyddd(time) ;
        yyyyddd:long_name = "yyyy and day_of_year" ;
        yyyyddd:units = "yyyyddd" ;
    float PREC(time, lat, lon) ;
        PREC:long_name = "GPCP: daily precipitation" ;
        PREC:units = "mm/day" ;
        PREC:_FillValue = -99999.f ;
        PREC:version = "v1.2" ;


Replies (2)

RE: cdo sellonlatbox (Abort): Unsupported grid type! - Added by Etienne Tourigny almost 12 years ago

I don't know why it's not recognized as lon/lat grid, usually it requires degrees_east/degrees_north units.

Any way you can try this

cdo griddes in.nc > grid.txt
<in file grid.txt replace generic with lonlat>
cdo setgrid,grid.txt in.nc in2.nc

RE: cdo sellonlatbox (Abort): Unsupported grid type! - Added by Etienne Tourigny almost 12 years ago

or try the answer in the very same topic you mentioned...

cdo setgrid,r360x180 file_with_generic_grid newfile

    (1-2/2)