Project

General

Profile

Cannot solve 'cdo genbil (Abort: Unsupported grid type' error

Added by Hem Nalini Morzaria-Luna almost 6 years ago

Hi, I am trying to regrid CIMP5 output

cdo genbil,r802x404 MIROC-ESM-CHEM_rcp26_r1i1p1.nc MIROC-ESM-CHEM_rcp26_r1i1p1_wgt.nc
cdo genbil (Abort): Unsupported grid type: generic

cdo sinfon: Processed 7 variables over 1 timestep ( 0.00s )

File format : netCDF
-1 : Institut Source Ttype Levels Num Points Num Dtype : Parameter name
1 : unknown MIROC-ESM-CHEM constant 44 1 1 1 F64 : sigma
2 : unknown MIROC-ESM-CHEM instant 1 2 49152 2 F32 : eta
3 : unknown MIROC-ESM-CHEM constant 1 2 49152 2 F32 : depth
4 : unknown MIROC-ESM-CHEM constant 44 1 1 1 F64 : zlev
5 : unknown MIROC-ESM-CHEM constant 44 1 2 3 F64 : sigma_bnds
6 : unknown MIROC-ESM-CHEM constant 44 1 2 3 F64 : zlev_bnds
7 : unknown MIROC-ESM-CHEM instant 44 1 49152 2 F32 : so
Grid coordinates :
1 : generic : points=1
2 : lonlat : points=49152 (256x192)
lon : 0.703125 to 359.297 by 1.40625 degrees_east circular
lat : -89.1444 to 89.1444 degrees_north
available : cellbounds
3 : generic : points=2
Vertical coordinates :
1 : generic : levels=44
lev : 2.5 to 5450
bounds : 0-5 to 5400-5500
2 : surface : levels=1
Time coordinate : 1 step
RefTime = 1850-01-01 00:00:00 Units = days Calendar = standard Bounds = true
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2035-08-16 17:16:34

I tried using ncatted to assign coordinates

ncatted -a coordinates,so,c,c,"lon lat" MIROC-ESM-CHEM_rcp26_r1i1p1.nc

which just creates another entry for a generic grid

and also specifying -selvar so in genbil but that doesn't work either


Replies (9)

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Hem Nalini Morzaria-Luna almost 6 years ago

Hem Nalini Morzaria-Luna wrote:

Hi, I am trying to regrid CIMP5 output

cdo genbil,r802x404 MIROC-ESM-CHEM_rcp26_r1i1p1.nc MIROC-ESM-CHEM_rcp26_r1i1p1_wgt.nc
cdo genbil (Abort): Unsupported grid type: generic

cdo sinfon: Processed 7 variables over 1 timestep ( 0.00s )

File format : netCDF
-1 : Institut Source Ttype Levels Num Points Num Dtype : Parameter name
1 : unknown MIROC-ESM-CHEM constant 44 1 1 1 F64 : sigma
2 : unknown MIROC-ESM-CHEM instant 1 2 49152 2 F32 : eta
3 : unknown MIROC-ESM-CHEM constant 1 2 49152 2 F32 : depth
4 : unknown MIROC-ESM-CHEM constant 44 1 1 1 F64 : zlev
5 : unknown MIROC-ESM-CHEM constant 44 1 2 3 F64 : sigma_bnds
6 : unknown MIROC-ESM-CHEM constant 44 1 2 3 F64 : zlev_bnds
7 : unknown MIROC-ESM-CHEM instant 44 1 49152 2 F32 : so
Grid coordinates :
1 : generic : points=1
2 : lonlat : points=49152 (256x192)
lon : 0.703125 to 359.297 by 1.40625 degrees_east circular
lat : -89.1444 to 89.1444 degrees_north
available : cellbounds
3 : generic : points=2
Vertical coordinates :
1 : generic : levels=44
lev : 2.5 to 5450
bounds : 0-5 to 5400-5500
2 : surface : levels=1

Karin.
Thanks, yes, I have included two of the files

Time coordinate : 1 step
RefTime = 1850-01-01 00:00:00 Units = days Calendar = standard Bounds = true
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
2035-08-16 17:16:34

I tried using ncatted to assign coordinates

ncatted -a coordinates,so,c,c,"lon lat" MIROC-ESM-CHEM_rcp26_r1i1p1.nc

which just creates another entry for a generic grid

and also specifying -selvar so in genbil but that doesn't work either

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Hem Nalini Morzaria-Luna almost 6 years ago

Karin, I have included the two files, let me know if they are readable.

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Karin Meier-Fleischer almost 6 years ago

Hi Hem,

did you use your test data doing genbil? There is no problem using them with e.g. CDO 1.9.2

Compute weights:

cdo genbil,r802x404 tos_Omon_MIROC-ESM_historical_r3i1p1_18501-200512_min_1975-01-2005-12.nc weights1.nc
cdo genbil,r802x404 tos_Omon_MIROC-ESM_rcp45_r1i1p1_20061-210012_min_2070-01-2100-12.nc weights2.nc

Remap:
cdo remap,r802x404,weights1.nc -selname,tos tos_Omon_MIROC-ESM_historical_r3i1p1_18501-200512_min_1975-01-2005-12.nc out1.nc
cdo remap,r802x404,weights2.nc -selname,tos tos_Omon_MIROC-ESM_rcp45_r1i1p1_20061-210012_min_2070-01-2100-12.nc out2.nc

Which CDO version (cdo -V) are you using? If you use an older CDO version upgrade to the current version.

-Karin

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Hem Nalini Morzaria-Luna almost 6 years ago

Hem Nalini Morzaria-Luna wrote:

Karin:

So sorry I uploaded the wrong file! These are the correct files, they return the cdo genbil (Abort): Unsupported grid type: generic error.

Karin, I have included the two files, let me know if they are readable.

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Karin Meier-Fleischer almost 6 years ago

Hi Hem,

I don't have any problem with your data doing

cdo genbil,r802x404 so_Omon_MIROC-ESM-CHEM_rcp26_r1i1p1_20061-210012_mean_2020-01-2050-12.nc weights_so1.nc
cdo genbil,r802x404 so_Omon_MIROC-ESM_rcp45_r1i1p1_20061-210012_mean_2070-01-2100-12.nc weights_so2.nc

cdo remap,r802x404,weights_so1.nc so_Omon_MIROC-ESM-CHEM_rcp26_r1i1p1_20061-210012_mean_2020-01-2050-12.nc out_so_1_remap.nc
cdo remap,r802x404,weights_so2.nc so_Omon_MIROC-ESM_rcp45_r1i1p1_20061-210012_mean_2070-01-2100-12.nc out_so_2_remap.nc

Which CDO version do you use (cdo -V)? I'm using 1.9.2.

-Karin

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Hem Nalini Morzaria-Luna almost 6 years ago

Karin:

Hi, thanks for your help, I finally realized that the issue was that although I thought I had switched to CDO ver 1.9.4, I was still using 1.7. I had an installation problem I missed and cannot solve, I will start a different thread for that.

RE: Cannot solve 'cdo genbil (Abort: Unsupported grid type' error - Added by Hem Nalini Morzaria-Luna almost 6 years ago

I actually realized my issue was that the cloud server I was using ran on Ubuntu Trusty (16.04). I tried a different server running bionic (18.04) and I can now use 1.9.3.
I will try to run all my scripts again in this version.

    (1-9/9)