How to convert variables to (lat, lon) by cdo?
Added by Jinyan Song over 1 year ago
Hi everyone,
I am trying to use CDO convert variables to (lat, lon). I perform the following,but I can't come up with the 3D variable.
I use the cdo commond:cdo -setgrid,grid.nc pr.nc temp0.nc
The grid.nc is
The result of the processing is still exactly the same as the information in the original file (the file information )
Do you know how to convert pr(time, ncells) to pr(time, lat,lon) using the CDO command?
Thank you in advance
Rilia
Replies (2)
RE: How to convert variables to (lat, lon) by cdo? - Added by Karin Meier-Fleischer over 1 year ago
Hi Jinyan,
both files have unstructured coordinates. If you have global data you can remap it to a regular lonlat grid, e.g. global 1x1 degree
cdo -remapnn,global_1 infile outfile
There are many examples how to do it in the support or open discussion forum. See also the FAQ how to use a grid description file https://code.mpimet.mpg.de/projects/cdo/wiki/FAQ
RE: How to convert variables to (lat, lon) by cdo? - Added by Jinyan Song over 1 year ago
Hi,
Thanks.I have solved it.