1

I want to change the resolution in my netcdf file using bilinear interpolation from (1°x1°) ---> (0.1°x0.1°). I use remapbil but it doesn't work. It returns: Unsupported grid type: generic. I upload file1 and file2

The command I use: cdo remapbil,infile1 infile2 ofile

ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
Minh Hiếu
  • 39
  • 1
  • 8

2 Answers2

2

The problem is that cdo does not like the presence of the variables lat_bounds and lon_bounds. If you delete these first with nco like this:

ncks -x -v lat_bounds,lon_bounds deseasonalized_2002-2019new_grace_inter.nc modified.nc

(it will give you a warning but it can be ignored).

Then you can use cdo to remap this file successfully. I tried this and it then worked:

cdo remapbil,r360x180 modified.nc test.nc

so I'm sure it will also work mapping one of your files to the other (don't forget to remove the bounds on both files first though).

ClimateUnboxed
  • 7,106
  • 3
  • 41
  • 86
0

The command should be cdo remapbil,infile1 infile2 ofile

Dani56
  • 372
  • 1
  • 2
  • 7