cdo mergegrid (Abort): Unsupported grid type: generic
Added by Jeisson Javier Leal Rojas over 1 year ago
Hi.
I am trying to do the following
cdo mergegrid in_file1.nc infile2.nc output.nc
However, I've got the error mentioned in the subject: cdo mergegrid (Abort): Unsupported grid type: generic
How can I change the grid type for something that CDO does not complain?
I have attached the files I am trying to cdo mergegrid.
Here you can have a view of the file's content:
in_file1:
netcdf in_file1 {
dimensions:
x = 7200 ;
y = 3600 ;
variables:
double x(x) ;
x:_FillValue = NaN ;
double y(y) ;
y:_FillValue = NaN ;
double flwdir(y, x) ;
flwdir:_FillValue = NaN ;
}
in_file2:
netcdf in_file2 {
dimensions:
x = 6000 ;
y = 6000 ;
variables:
double x(x) ;
x:_FillValue = NaN ;
double y(y) ;
y:_FillValue = NaN ;
double flwdir(y, x) ;
flwdir:_FillValue = NaN ;
}
Thanks in advance.
Cheers,
Jeisson Leal.
| in_files.zip (997 KB) in_files.zip | contains in_file1.nc and in_file2.nc |
Replies (2)
RE: cdo mergegrid (Abort): Unsupported grid type: generic - Added by Jeisson Javier Leal Rojas over 1 year ago
I found what the issue was. I had original attic file and it seems I was doing something wrong when converting it into a NetCDF file!
RE: cdo mergegrid (Abort): Unsupported grid type: generic - Added by Ralf Mueller over 1 year ago
hi Javier!
CDO is designed to work the CF-conform netcdf files. your inputs are missing essential information about coordinates and their relation to data variables. Hence CDO identifies the grid to be generic.
cheers
ralf