Project

General

Profile

Interpolate data with cdo remap

Added by Joakim Kjellsson over 10 years ago

Hi!

I'm trying to re-map data from a regular lon-lat grid to another lon-lat grid of a different resolution.
The data is from the GFDL model, so surface pressure (ps) comes in one file and the grid cell area (areacella) comes in another file.
Both are attached.

When I do the interpolation
cdo remapbil,r144x72 ps.nc ps2.nc
I get a message saying that "Warning (scanVarAttributes) : NetCDF: Variable not found - areacella"
If I understand correctly this means that CDO can't determine the size of the grid cells and can't weight the interpolation correctly.

How do I tell CDO where it can find the grid cell areas to weight the interpolation correctly?

/Joakim


Replies (1)

RE: Interpolate data with cdo remap - Added by Jaison-Thomas Ambadan over 10 years ago

Hi,

here is my output (cdo latest/current version)

$> cdo remapbil,r144x72 ps.nc ofile.nc
cdo remapbil: Processed 142560 values from 1 variable over 11 timesteps ( 0.14s )

$> cdo -remapbil,r144x72 -setgridarea,areacella.nc ps.nc ofile.nc
cdo remapbil: Started child process "setgridarea,areacella.nc ps.nc (pipe1.1)".
cdo(2) setgridarea: Processed 155520 values from 2 variables over 12 timesteps ( 0.18s )
cdo remapbil: Processed 142560 values from 1 variable over 11 timesteps ( 0.18s )

Cheers,
J.

    (1-1/1)