Project

General

Profile

grid reduction interpolation

Added by Liubov Tupikina about 11 years ago

Hi!

Dear CDO-creators and users!
I have a question about transformation of grid-resolution.

Maybe you already had this problem:
We have data in file f.e. file.nc with resolution 1 grad-grid.
We want to transformate our grid into f.e. 2 grad-grid.
But also we want to interpolate data in the file, f.e. temperature-values, so that in the point in new grid we will have something like the mean-value between all values of surrounded points-values.

So, are there any methods, like
setgrid
and
interpolate,grid ifile ofile
together?

Thank you very much!


Replies (1)

RE: grid reduction interpolation - Added by Jaison-Thomas Ambadan about 11 years ago

Hi,

Please have a look at CDO documentation section: “2.12  Interpolation” https://code.zmaw.de/embedded/cdo/1.5.9/cdo.html#x1-4940002.12

I recommend, first you try those operators and if there is any error, please post it here including the the CDO command sequence that you've used and your input file.

Here is an example:

cdo -f nc -random,r360x180 my_file.nc

creates a global random number file with 1 degree resolution (r360x180 -> regular lon-lat).

If you would like to interpolate to 2 degree using the nearest neighbour remap/interpolation method:

cdo -remapnn,r180x90 my_file.nc out_file.nc

You could use a grid-descriptor file instead of “r180x90” in order o describe your output file. See section “1.3.2.4. CDO grids” in the documentation for the details regarding CDO grid descriptor file.

Cheers,
J

    (1-1/1)