<div dir="ltr">Thank you Andrew for your patience to help me with this,<div><br></div><div>but, I tried again to use the CDO software, as Kishore suggest me, and I solve my the problem with the re-griding.</div><div><br></div>
<div>I tried to use lterp command to regrid the data. However, after running the gs program I just received the message <i>segmentation fault</i>.</div><div><br></div><div>Thank again</div><div><br></div><div><br></div><div>
<br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><font color="#333333"><span style="background-color:rgb(255,255,255)">José Augusto P. Veiga, </span><br>
<br>======================================<br>Coordenador do curso de Meteorologia da UEA<br>Universidade do Estado do Amazonas <br>Departamento de Meteorologia<br><span style="border-collapse:separate;font-family:arial;font-size:small">Escola Superior de Tecnologia (EST)</span><br>
-----------------------------------------------------------------------------</font></span></div><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><span style="border-collapse:separate;font-family:arial;font-size:small"><font color="#333333">Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
Work phone:    (92) 3878 4333, Ramal 4333<br>Cell   phone :    (92) 8196 7122<br>Skype:<span style="background-color:rgb(255,255,255)"> veiga_j.a.p.</span><br></font></span></span></div><div><font color="#333333"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">-----------------------------------------------------------------------------</span><br>
CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank"><font style="background-color:rgb(255,255,255)" color="#333333">http://lattes.cnpq.br/4027612512091565</font></a><br>URL:<a href="http://scientificmet.wordpress.com/" target="_blank"><font style="background-color:rgb(255,255,0)">http://scientificmet.wordpress.com/</font></a><br>
<span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">-----------------------------------------------------------------------------</span></font></div><div><font color="#333333"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>
</span></font></div><div><font color="#333333"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br></span></font></div><div><font color="#333333"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>
</span></font></div></div></div>
<br><br><div class="gmail_quote">On Tue, Jul 8, 2014 at 3:06 PM, Andrew Friedman <span dir="ltr">&lt;<a href="mailto:andfried@berkeley.edu" target="_blank">andfried@berkeley.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The GrADS function ‘lterp’ is similar to OpenGrADS ‘re’, but doesn&#39;t have all the same features.<br>
<a href="http://www.iges.org/grads/gadoc/gradfunclterp.html" target="_blank">http://www.iges.org/grads/gadoc/gradfunclterp.html</a><br>
<div class="HOEnZb"><div class="h5"><br>
On Jul 8, 2014, at 11:55 AM, Andrew Revering &lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt; wrote:<br>
<br>
&gt; You may need the OpenGrADS distribution.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Andrew Revering - Follow @andrewrevering on Twitter<br>
&gt; Convective Development, Inc.<br>
&gt; PO Box 511, Cambridge, MN 55008<br>
&gt; <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 8, 2014 at 1:50 PM, Jose Augusto Paixão Veiga &lt;<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>&gt; wrote:<br>
&gt; Hi Andrew and Roger,<br>
&gt;<br>
&gt; thank you by relevant hints and patience with my problem.<br>
&gt;<br>
&gt; I tried to do you&#39;ve suggest me. However, after giving the command  &#39;define precnew = re(prec,0.2)&#39; in my gs file I get the message bellow:<br>
&gt;<br>
&gt;<br>
&gt;  Syntax Error:  Invalid Operand<br>
&gt;   &#39;re&#39; not a variable or function name<br>
&gt;   Error ocurred at column 1<br>
&gt; DEFINE error:  Invalid expression.<br>
&gt;<br>
&gt; What should be happening?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; José Augusto P. Veiga,<br>
&gt;<br>
&gt; ======================================<br>
&gt; Coordenador do curso de Meteorologia da UEA<br>
&gt; Universidade do Estado do Amazonas<br>
&gt; Departamento de Meteorologia<br>
&gt; Escola Superior de Tecnologia (EST)<br>
&gt; -----------------------------------------------------------------------------<br>
&gt; Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
&gt; Work phone:    (92) 3878 4333, Ramal 4333<br>
&gt; Cell   phone :    (92) 8196 7122<br>
&gt; Skype: veiga_j.a.p.<br>
&gt; -----------------------------------------------------------------------------<br>
&gt; CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank">http://lattes.cnpq.br/4027612512091565</a><br>
&gt; URL:<a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a><br>
&gt; -----------------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 8, 2014 at 7:51 AM, Roger Rodrigues Torres &lt;<a href="mailto:torres.fisico@gmail.com">torres.fisico@gmail.com</a>&gt; wrote:<br>
&gt; Dear Jose,<br>
&gt; as Andrew said, the RE function on Grads will perfectly do what you need.<br>
&gt; &#39;define precnew = re(prec,0.5)&#39;<br>
&gt; In this way, the regrid function will perform a bilinear interpolation to the new grid,and it will not create undefined values.<br>
&gt; After you have defined the new variable in the new grid (in this example, precnew), you can save the output in a netcdf file using the following comand:<br>
&gt; &#39;set sdfwrite <a href="http://output.nc" target="_blank">output.nc</a><br>
&gt; &#39;sdfwrite precnew&#39;<br>
&gt;<br>
&gt; Let me know if this work.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Roger Torres<br>
&gt;<br>
&gt; Dr. Roger Rodrigues Torres<br>
&gt; Professor Auxiliar I<br>
&gt; Universidade Federal de Itajubá - Unifei<br>
&gt; Instituto de Recursos Naturais - IRN<br>
&gt; Curriculum Lattes: <a href="http://lattes.cnpq.br/5641165392004404" target="_blank">http://lattes.cnpq.br/5641165392004404</a><br>
&gt; Webpage: <a href="http://rtorres.webnode.com.br" target="_blank">http://rtorres.webnode.com.br</a><br>
&gt;<br>
&gt;<br>
&gt; 2014-07-08 2:30 GMT-03:00 Andrew Revering &lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt;:<br>
&gt;<br>
&gt; It looks like your irregular grid is in a variable &#39;prec&#39;.<br>
&gt;<br>
&gt; So if you were to do:<br>
&gt;<br>
&gt; &#39;define precnew = re(prec,0.5)&#39;<br>
&gt;<br>
&gt; you would have it interpolated to a 0.5 degree grid. You can change the 0.5 to whatever spacing you think is appropriate.<br>
&gt;<br>
&gt; I haven&#39;t done anything like this before, so I&#39;m not sure if the re() function is going to give you an error if it&#39;s not a regular grid, but it might work. :-)<br>
&gt;<br>
&gt; I&#39;m also not sure what will happen when you get to regions where your grid has sparse or missing data. That&#39;s where you might want to experiment with the degree in your new grid spacing. A larger number will probably allow it to interpolate farther out, but a very small value may return a bunch of missing data points...I&#39;m not sure.<br>

&gt;<br>
&gt; Others who know more about this can hopefully chime in.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Andrew Revering - Follow @andrewrevering on Twitter<br>
&gt; Convective Development, Inc.<br>
&gt; PO Box 511, Cambridge, MN 55008<br>
&gt; <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 7, 2014 at 11:41 PM, Jose Augusto Paixão Veiga &lt;<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>&gt; wrote:<br>
&gt; Hi Andrew,<br>
&gt;<br>
&gt; I presume the command &#39;define newgrid = re(oldgrid,1.0)&#39; you&#39;ve suggest me can be work in GrAds. If so, old grid would be a function or a specific value? It is not clear yet for me.<br>
&gt;<br>
&gt; Yes, I am trying to use regular grid date instead not regular.<br>
&gt;<br>
&gt; My original ctl file is bellow. But I need have my dx and dy  equally spaced.<br>
&gt;<br>
&gt; I have total precipitation.<br>
&gt;<br>
&gt; Thanks for your e-mail.<br>
&gt;<br>
&gt; dset ^sum-prec-OCT-APR-KF-d01.bin<br>
&gt; undef 1.e30<br>
&gt; title  OUTPUT FROM WRF V3.5 MODEL<br>
&gt; xdef  103 levels<br>
&gt;     262.8432<br>
&gt;     263.5718<br>
&gt;     264.3003<br>
&gt;     265.0289<br>
&gt;     265.7574<br>
&gt;     266.4860<br>
&gt;     267.2146<br>
&gt;     267.9431<br>
&gt;     268.6717<br>
&gt;     269.4003<br>
&gt;     270.1288<br>
&gt;     270.8574<br>
&gt;     271.5860<br>
&gt;     272.3145<br>
&gt;     273.0431<br>
&gt;     273.7717<br>
&gt;     274.5002<br>
&gt;     275.2288<br>
&gt;     275.9574<br>
&gt;     276.6859<br>
&gt;     277.4145<br>
&gt;     278.1431<br>
&gt;     278.8716<br>
&gt;     279.6002<br>
&gt;     280.3287<br>
&gt;     281.0573<br>
&gt;     281.7859<br>
&gt;     282.5144<br>
&gt;     283.2430<br>
&gt;     283.9716<br>
&gt;     284.7001<br>
&gt;     285.4287<br>
&gt;     286.1573<br>
&gt;     286.8858<br>
&gt;     287.6144<br>
&gt;     288.3430<br>
&gt;     289.0715<br>
&gt;     289.8001<br>
&gt;     290.5287<br>
&gt;     291.2572<br>
&gt;     291.9858<br>
&gt;     292.7144<br>
&gt;     293.4429<br>
&gt;     294.1715<br>
&gt;     294.9001<br>
&gt;     295.6286<br>
&gt;     296.3572<br>
&gt;     297.0858<br>
&gt;     297.8143<br>
&gt;     298.5429<br>
&gt;     299.2714<br>
&gt;     300.0000<br>
&gt;     300.7286<br>
&gt;     301.4571<br>
&gt;     302.1857<br>
&gt;     302.9142<br>
&gt;     303.6428<br>
&gt;     304.3714<br>
&gt;     305.0999<br>
&gt;     305.8285<br>
&gt;     306.5571<br>
&gt;     307.2856<br>
&gt;     308.0142<br>
&gt;     308.7428<br>
&gt;     309.4713<br>
&gt;     310.1999<br>
&gt;     310.9285<br>
&gt;     311.6570<br>
&gt;     312.3856<br>
&gt;     313.1142<br>
&gt;     313.8427<br>
&gt;     314.5713<br>
&gt;     315.2999<br>
&gt;     316.0284<br>
&gt;     316.7570<br>
&gt;     317.4856<br>
&gt;     318.2141<br>
&gt;     318.9427<br>
&gt;     319.6713<br>
&gt;     320.3998<br>
&gt;     321.1284<br>
&gt;     321.8569<br>
&gt;     322.5855<br>
&gt;     323.3141<br>
&gt;     324.0426<br>
&gt;     324.7712<br>
&gt;     325.4998<br>
&gt;     326.2283<br>
&gt;     326.9569<br>
&gt;     327.6855<br>
&gt;     328.4140<br>
&gt;     329.1426<br>
&gt;     329.8712<br>
&gt;     330.5997<br>
&gt;     331.3283<br>
&gt;     332.0569<br>
&gt;     332.7854<br>
&gt;     333.5140<br>
&gt;     334.2426<br>
&gt;     334.9711<br>
&gt;     335.6997<br>
&gt;     336.4283<br>
&gt;     337.1568<br>
&gt; ydef   89 levels<br>
&gt;    -34.71973<br>
&gt;    -34.11872<br>
&gt;    -33.51342<br>
&gt;    -32.90385<br>
&gt;    -32.29005<br>
&gt;    -31.67207<br>
&gt;    -31.04995<br>
&gt;    -30.42374<br>
&gt;    -29.79348<br>
&gt;    -29.15923<br>
&gt;    -28.52103<br>
&gt;    -27.87895<br>
&gt;    -27.23304<br>
&gt;    -26.58335<br>
&gt;    -25.92998<br>
&gt;    -25.27294<br>
&gt;    -24.61234<br>
&gt;    -23.94821<br>
&gt;    -23.28067<br>
&gt;    -22.60976<br>
&gt;    -21.93555<br>
&gt;    -21.25815<br>
&gt;    -20.57760<br>
&gt;    -19.89401<br>
&gt;    -19.20746<br>
&gt;    -18.51802<br>
&gt;    -17.82580<br>
&gt;    -17.13087<br>
&gt;    -16.43335<br>
&gt;    -15.73330<br>
&gt;    -15.03085<br>
&gt;    -14.32607<br>
&gt;    -13.61906<br>
&gt;    -12.90993<br>
&gt;    -12.19879<br>
&gt;    -11.48574<br>
&gt;    -10.77088<br>
&gt;    -10.05432<br>
&gt;    -9.336166<br>
&gt;    -8.616524<br>
&gt;    -7.895515<br>
&gt;    -7.173248<br>
&gt;    -6.449829<br>
&gt;    -5.725380<br>
&gt;    -5.000008<br>
&gt;    -4.273834<br>
&gt;    -3.546967<br>
&gt;    -2.819534<br>
&gt;    -2.091644<br>
&gt;    -1.363419<br>
&gt;   -0.6349640<br>
&gt;    9.3582153E-02<br>
&gt;    0.8221283<br>
&gt;     1.550529<br>
&gt;     2.278679<br>
&gt;     3.006462<br>
&gt;     3.733765<br>
&gt;     4.460464<br>
&gt;     5.186440<br>
&gt;     5.911591<br>
&gt;     6.635788<br>
&gt;     7.358917<br>
&gt;     8.080879<br>
&gt;     8.801544<br>
&gt;     9.520813<br>
&gt;     10.23856<br>
&gt;     10.95470<br>
&gt;     11.66911<br>
&gt;     12.38168<br>
&gt;     13.09231<br>
&gt;     13.80090<br>
&gt;     14.50734<br>
&gt;     15.21154<br>
&gt;     15.91339<br>
&gt;     16.61279<br>
&gt;     17.30966<br>
&gt;     18.00390<br>
&gt;     18.69541<br>
&gt;     19.38412<br>
&gt;     20.06992<br>
&gt;     20.75273<br>
&gt;     21.43247<br>
&gt;     22.10907<br>
&gt;     22.78243<br>
&gt;     23.45250<br>
&gt;     24.11917<br>
&gt;     24.78239<br>
&gt;     25.44209<br>
&gt;     26.09818<br>
&gt; zdef  1 linear 1 1<br>
&gt; tdef  213 linear 12Z01OCT2011    1440MN<br>
&gt; VARS   1<br>
&gt; prec   1  0  ACUMULATED TOTAL PRECIPITATION (CUMULUS + GRID SCALE) (mm)<br>
&gt; ENDVARS<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; José Augusto P. Veiga,<br>
&gt;<br>
&gt; ======================================<br>
&gt; Coordenador do curso de Meteorologia da UEA<br>
&gt; Universidade do Estado do Amazonas<br>
&gt; Departamento de Meteorologia<br>
&gt; Escola Superior de Tecnologia (EST)<br>
&gt; -----------------------------------------------------------------------------<br>
&gt; Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
&gt; Work phone:    (92) 3878 4333, Ramal 4333<br>
&gt; Cell   phone :    (92) 8196 7122<br>
&gt; Skype: veiga_j.a.p.<br>
&gt; -----------------------------------------------------------------------------<br>
&gt; CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank">http://lattes.cnpq.br/4027612512091565</a><br>
&gt; URL:<a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a><br>
&gt; -----------------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 8, 2014 at 12:19 AM, Andrew Revering &lt;<a href="mailto:andy@f5data.com">andy@f5data.com</a>&gt; wrote:<br>
&gt; This is a real guess since I&#39;ve never worked with an irregular grid in GrADS, but couldn&#39;t you just regrid to a certain degree grid and it would interpolate to a regular grid?<br>
&gt;<br>
&gt; IE<br>
&gt;<br>
&gt; &#39;define newgrid = re(oldgrid,1.0)&#39;<br>
&gt;<br>
&gt; would regrid it to a 1.0° grid??<br>
&gt;<br>
&gt; While we&#39;re on the topic, how would you import/display an irregular grid in GrADS? Lets say you have surface temperatures to plot?<br>
&gt;<br>
&gt; Andrew Revering - Follow @andrewrevering on Twitter<br>
&gt; Convective Development, Inc.<br>
&gt; PO Box 511, Cambridge, MN 55008<br>
&gt; <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 7, 2014 at 11:13 PM, Jose Augusto Paixão Veiga &lt;<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>&gt; wrote:<br>
&gt; Dear Kishore,<br>
&gt;<br>
&gt; I tried this (cdo -f nc import_binary my.ctl <a href="http://output.nc" target="_blank">output.nc</a>), however I just receive the message bellow:<br>
&gt;<br>
&gt;  cdo import_binary (Abort): I/O error reading record!<br>
&gt;<br>
&gt;<br>
&gt; Do you have any idea what does it mean?<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Jul 7, 2014 at 11:35 PM, Kishore Ragi &lt;<a href="mailto:kishoreragi@gmail.com">kishoreragi@gmail.com</a>&gt; wrote:<br>
&gt; cdo -f nc import_binary xxxxxxx.ctl <a href="http://yyyyyyy.nc" target="_blank">yyyyyyy.nc</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; José Augusto P. Veiga,<br>
&gt;<br>
&gt; ======================================<br>
&gt; Coordenador do curso de Meteorologia da UEA<br>
&gt; Universidade do Estado do Amazonas<br>
&gt; Departamento de Meteorologia<br>
&gt; Escola Superior de Tecnologia (EST)<br>
&gt; -----------------------------------------------------------------------------<br>
&gt; Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
&gt; Work phone:    (92) 3878 4333, Ramal 4333<br>
&gt; Cell   phone :    (92) 8196 7122<br>
&gt; Skype: veiga_j.a.p.<br>
&gt; -----------------------------------------------------------------------------<br>
&gt; CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank">http://lattes.cnpq.br/4027612512091565</a><br>
&gt; URL:<a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a><br>
&gt; -----------------------------------------------------------------------------<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div></div></blockquote></div><br></div>