Project

General

Profile

Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error

Added by Fed Facch almost 6 years ago

Dear experts,
I keep getting an error after performing:

cdo remapdis,targetgrid.nc -selvar,runoff myfile.nc output.nc

_

cdo remapdis: Started child process "selvar,runoff prova1.nc (pipe1.1)".
cdo remapdis (Abort): Unsupported grid type: generic_

My file is the following.

ncdump -h myfile.nc 
netcdf myfile {
dimensions:
    y = 55 ;
    x = 63 ;
variables:
    float lon(y, x) ;
        lon:units = "degreeE" ;
        lon:name = "nav_lon" ;
    float lat(y, x) ;
        lat:units = "degreeN" ;
        lat:name = "nav_lat" ;
    float runoff(y, x) ;
        runoff:coordinates = "nav_lon nav_lat" ;
    float mask(y, x) ;
    float socoefr(y, x) ;

Any idea?
g:

Thank you very much in advance.

PS targetgrid is too big to be uploadable.
It's structure is the following:

ncdump -h targetgrid.nc 
netcdf targetgrid {
dimensions:
    x = 205 ;
    y = 107 ;
    z = 98 ;
    t = UNLIMITED ; // (1 currently)
variables:
    float nav_lon(y, x) ;
    float nav_lat(y, x) ;
    float nav_lev(z) ;
    double time_counter(t) ;
    byte tmask(t, z, y, x) ;
    byte umask(t, z, y, x) ;
    byte vmask(t, z, y, x) ;
    byte fmask(t, z, y, x) ;
    byte tmaskutil(t, y, x) ;
    byte umaskutil(t, y, x) ;
    byte vmaskutil(t, y, x) ;
    byte fmaskutil(t, y, x) ;
    float glamt(t, y, x) ;
    float glamu(t, y, x) ;
    float glamv(t, y, x) ;
    float glamf(t, y, x) ;
    float gphit(t, y, x) ;
    float gphiu(t, y, x) ;
    float gphiv(t, y, x) ;
    float gphif(t, y, x) ;
    double e1t(t, y, x) ;
    double e1u(t, y, x) ;
    double e1v(t, y, x) ;
    double e1f(t, y, x) ;
    double e2t(t, y, x) ;
    double e2u(t, y, x) ;
    double e2v(t, y, x) ;
    double e2f(t, y, x) ;
    double ff(t, y, x) ;
    short mbathy(t, y, x) ;
    short misf(t, y, x) ;
    float isfdraft(t, y, x) ;
    double e3t_0(t, z, y, x) ;
    double e3u_0(t, z, y, x) ;
    double e3v_0(t, z, y, x) ;
    double e3w_0(t, z, y, x) ;
    float gdept_0(t, z, y, x) ;
    float gdepu(t, z, y, x) ;
    float gdepv(t, z, y, x) ;
    float gdepw_0(t, z, y, x) ;
    double gdept_1d(t, z) ;
    double gdepw_1d(t, z) ;
    double e3t_1d(t, z) ;
    double e3w_1d(t, z) ;

// global attributes:
        :DOMAIN_number_total = 1 ;
        :DOMAIN_number = 0 ;
        :DOMAIN_dimensions_ids = 1, 2 ;
        :DOMAIN_size_global = 205, 107 ;
        :DOMAIN_size_local = 205, 107 ;
        :DOMAIN_position_first = 1, 1 ;
        :DOMAIN_position_last = 205, 107 ;
        :DOMAIN_halo_size_start = 0, 0 ;
        :DOMAIN_halo_size_end = 0, 0 ;
        :DOMAIN_type = "BOX" ;
}


Replies (7)

RE: Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error - Added by Ralf Mueller almost 6 years ago

hi!

the coordinates attribute seem to be wrong

  float runoff(y, x) ;
        runoff:coordinates = "nav_lon nav_lat" ;

Ether nav_lon and nav_lat have to be added to your file or runoff should make use of lon and lat instead. In the current state, CDO cannot link runoff to any locations on mother earth - hence no interpolation

hth
ralf

RE: Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error - Added by Fed Facch almost 6 years ago

Thank you for your answer. If I get it right, you mean that my file should something like

ncdump -h myfile.nc
netcdf myfile {
dimensions:
y = 55 ;
x = 63 ;
variables:
float lon(y, x) ;
lon:units = "degreeE" ;
lon:name = "nav_lon" ;
float lat(y, x) ;
lat:units = "degreeN" ;
lat:name = "nav_lat" ;
float runoff(y, x) ;
runoff:coordinates = "lon lat" ;
float mask(y, x) ;
float socoefr(y, x) ;

right?

RE: Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error - Added by Ralf Mueller almost 6 years ago

yes - values of the coordinate attribute must be data variables in the same file.

RE: Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error - Added by Fed Facch almost 6 years ago

Thank you again. I did

ncatted -a coordinates,runoff,o,c,"lon lat" myfile.nc

resulting in the file written above and with the same error:

cdo remapbil,targetgrid.nc -selvar,runoff myfile.nc out.nc
Warning (find_time_vars) : Time variable >t< not found!

cdo remapbil (Abort): Unsupported target grid type (generic)!

RE: Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error - Added by Fed Facch almost 6 years ago

I tried, but i cant do that, they are too heavy.
Maybe it could be some problem with targetgrid.nc? Does it need some specific attributes as well?

RE: Cannot solve ‘'cdo remapdis (Abort): Unsupported grid type! ' error - Added by Ralf Mueller almost 6 years ago

you can use our public ftp server: ftp.zmaw.de/incoming, user anonymous, passwd: an email-address

gzip is pretty effective on netcdf files, too

    (1-7/7)