Project

General

Profile

cdo remap questions

Added by Guilong Li about 10 years ago

Hi,

I want to remap regional climate model to GCM grid point. I know cdo has a function to do remap, but I will do it in different way. I want to do a simple average, which means I want to average all RCM grid points value within a GCM box, so I can do it in this way

cdo -b f32 -f nc fldmean -sellonlatbox,221.25,223.75,41.25,43.75 RCM.nc GCM.nc

But the latitude and longitude is zero in GCM.nc output. If latitude and longitude can be real location (222.5, 42.5), then I can merge multiple boxes into one file to get what I want.

Could you give me a suggestion how to change code to fit for my requirement?

Thanks,

Guilong


Replies (1)

RE: cdo remap questions - Added by Uwe Schulzweida about 10 years ago

You have to overwrite the grid description with the CDO operator setgrid:

cdo -b f32 -f nc setgrid,lon=222.5/lat=42.5 -fldmean -sellonlatbox,221.25,223.75,41.25,43.75 RCM.nc GCM.nc

    (1-1/1)