Project

General

Profile

Setgrid -generic- Help

Added by Chris Parap about 12 years ago

Hello, I have a Netcdf2 file with the above dimension. It covers the Europe and northern Africa. The problem is that i want to convert generic coordinates to regular lat/lon. I have tried with
cdo setgrid,r107x147 ifile ofile<pre> but it gives me a global lat/lon (lon=360 and lat=180). I also have tried with remapbill but the result is the same.. I give you the ncdump -h and the cdo sinfov results

<pre> 
x = 107 ;
y = 147 ;
lev = 37 ;
lev_2 = 38 ;
time = UNLIMITED ; // (169 currently)
</pre>

<pre>Horizontal grids :
     1 : generic      > size      : dim = 15729  nx = 107  ny = 147
   Vertical grids :
     1 : generic            level : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
                                    19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
                                    34 35 36 37
     2 : surface                  : 0
     3 : generic            level : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
                                    19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
                                    34 35 36 37 38

</pre>

Anybody has faced the same problem?
Thanks in advance,
Chris


Replies (1)

RE: Setgrid -generic- Help - Added by Jaison-Thomas Ambadan about 12 years ago

Hi Chris,

You might have already solved your problem but just in case...

if you give a "template file" covering the desired area(Europe/Africa) instead of r107x147 it should give the output file matching the template,

cdo setgrid,template_file ifile ofile

you can also remap the same way

cdo remapnn,template_file ifile ofile

Hope this helps

Cheers,
J.

    (1-1/1)