Project

General

Profile

Combining NCO and CDO

Added by Anne Moree almost 6 years ago

Hello,

I have manipulated some netcdf files with CDO (with for example remapbil), when I ran into the following problem:
When I try to add two variables from two different netcdf files, the latitude has flipped around the equator. I used:

ncflint --fix_rec_crd -w 1,1 -v variablename infile1.nc infile2.nc SUMfile.nc

The same is the case for 'ncbo --op_typ=add ...'

The problem comes from the CDO-manipulated file I figured out.
I can quickly solve this by doing cdo invertlat before doing the NCO addition.

Why does this problem arise, and, is this a feature or a bug:)?

Best,
Anne


Replies (2)

RE: Combining NCO and CDO - Added by Uwe Schulzweida almost 6 years ago

Hello Anne,

The CDO operator remapbil needs one parameter, the target grid. The grid and therefor the latitude orientation in your result from CDO is exactly as you have described it in the target grid.

Cheers,
Uwe

RE: Combining NCO and CDO - Added by Anne Moree almost 6 years ago

Dear Uwe,
Thank you for again for your fast reply. I used remapbil,t62grid (so I did not define my own grid manually) and this apparently has different latitude conventions than used in NCO.
Luckily the CDO command cdo invertlat quickly solves this problem.

Cheers,
Anne

    (1-2/2)