<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"><<a href="mailto:andfried@berkeley.edu" target="_blank">andfried@berkeley.edu</a>></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'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 <<a href="mailto:andy@f5data.com">andy@f5data.com</a>> wrote:<br>
<br>
> You may need the OpenGrADS distribution.<br>
><br>
><br>
><br>
> Andrew Revering - Follow @andrewrevering on Twitter<br>
> Convective Development, Inc.<br>
> PO Box 511, Cambridge, MN 55008<br>
> <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
><br>
><br>
> On Tue, Jul 8, 2014 at 1:50 PM, Jose Augusto Paixão Veiga <<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>> wrote:<br>
> Hi Andrew and Roger,<br>
><br>
> thank you by relevant hints and patience with my problem.<br>
><br>
> I tried to do you've suggest me. However, after giving the command 'define precnew = re(prec,0.2)' in my gs file I get the message bellow:<br>
><br>
><br>
> Syntax Error: Invalid Operand<br>
> 're' not a variable or function name<br>
> Error ocurred at column 1<br>
> DEFINE error: Invalid expression.<br>
><br>
> What should be happening?<br>
><br>
><br>
><br>
><br>
><br>
> José Augusto P. Veiga,<br>
><br>
> ======================================<br>
> Coordenador do curso de Meteorologia da UEA<br>
> Universidade do Estado do Amazonas<br>
> Departamento de Meteorologia<br>
> Escola Superior de Tecnologia (EST)<br>
> -----------------------------------------------------------------------------<br>
> Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
> Work phone: (92) 3878 4333, Ramal 4333<br>
> Cell phone : (92) 8196 7122<br>
> Skype: veiga_j.a.p.<br>
> -----------------------------------------------------------------------------<br>
> CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank">http://lattes.cnpq.br/4027612512091565</a><br>
> URL:<a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a><br>
> -----------------------------------------------------------------------------<br>
><br>
><br>
><br>
><br>
><br>
> On Tue, Jul 8, 2014 at 7:51 AM, Roger Rodrigues Torres <<a href="mailto:torres.fisico@gmail.com">torres.fisico@gmail.com</a>> wrote:<br>
> Dear Jose,<br>
> as Andrew said, the RE function on Grads will perfectly do what you need.<br>
> 'define precnew = re(prec,0.5)'<br>
> In this way, the regrid function will perform a bilinear interpolation to the new grid,and it will not create undefined values.<br>
> 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>
> 'set sdfwrite <a href="http://output.nc" target="_blank">output.nc</a><br>
> 'sdfwrite precnew'<br>
><br>
> Let me know if this work.<br>
><br>
> Cheers,<br>
> Roger Torres<br>
><br>
> Dr. Roger Rodrigues Torres<br>
> Professor Auxiliar I<br>
> Universidade Federal de Itajubá - Unifei<br>
> Instituto de Recursos Naturais - IRN<br>
> Curriculum Lattes: <a href="http://lattes.cnpq.br/5641165392004404" target="_blank">http://lattes.cnpq.br/5641165392004404</a><br>
> Webpage: <a href="http://rtorres.webnode.com.br" target="_blank">http://rtorres.webnode.com.br</a><br>
><br>
><br>
> 2014-07-08 2:30 GMT-03:00 Andrew Revering <<a href="mailto:andy@f5data.com">andy@f5data.com</a>>:<br>
><br>
> It looks like your irregular grid is in a variable 'prec'.<br>
><br>
> So if you were to do:<br>
><br>
> 'define precnew = re(prec,0.5)'<br>
><br>
> 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>
><br>
> I haven't done anything like this before, so I'm not sure if the re() function is going to give you an error if it's not a regular grid, but it might work. :-)<br>
><br>
> I'm also not sure what will happen when you get to regions where your grid has sparse or missing data. That'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'm not sure.<br>
><br>
> Others who know more about this can hopefully chime in.<br>
><br>
><br>
><br>
> Andrew Revering - Follow @andrewrevering on Twitter<br>
> Convective Development, Inc.<br>
> PO Box 511, Cambridge, MN 55008<br>
> <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
><br>
><br>
> On Mon, Jul 7, 2014 at 11:41 PM, Jose Augusto Paixão Veiga <<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>> wrote:<br>
> Hi Andrew,<br>
><br>
> I presume the command 'define newgrid = re(oldgrid,1.0)' you'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>
><br>
> Yes, I am trying to use regular grid date instead not regular.<br>
><br>
> My original ctl file is bellow. But I need have my dx and dy equally spaced.<br>
><br>
> I have total precipitation.<br>
><br>
> Thanks for your e-mail.<br>
><br>
> dset ^sum-prec-OCT-APR-KF-d01.bin<br>
> undef 1.e30<br>
> title OUTPUT FROM WRF V3.5 MODEL<br>
> xdef 103 levels<br>
> 262.8432<br>
> 263.5718<br>
> 264.3003<br>
> 265.0289<br>
> 265.7574<br>
> 266.4860<br>
> 267.2146<br>
> 267.9431<br>
> 268.6717<br>
> 269.4003<br>
> 270.1288<br>
> 270.8574<br>
> 271.5860<br>
> 272.3145<br>
> 273.0431<br>
> 273.7717<br>
> 274.5002<br>
> 275.2288<br>
> 275.9574<br>
> 276.6859<br>
> 277.4145<br>
> 278.1431<br>
> 278.8716<br>
> 279.6002<br>
> 280.3287<br>
> 281.0573<br>
> 281.7859<br>
> 282.5144<br>
> 283.2430<br>
> 283.9716<br>
> 284.7001<br>
> 285.4287<br>
> 286.1573<br>
> 286.8858<br>
> 287.6144<br>
> 288.3430<br>
> 289.0715<br>
> 289.8001<br>
> 290.5287<br>
> 291.2572<br>
> 291.9858<br>
> 292.7144<br>
> 293.4429<br>
> 294.1715<br>
> 294.9001<br>
> 295.6286<br>
> 296.3572<br>
> 297.0858<br>
> 297.8143<br>
> 298.5429<br>
> 299.2714<br>
> 300.0000<br>
> 300.7286<br>
> 301.4571<br>
> 302.1857<br>
> 302.9142<br>
> 303.6428<br>
> 304.3714<br>
> 305.0999<br>
> 305.8285<br>
> 306.5571<br>
> 307.2856<br>
> 308.0142<br>
> 308.7428<br>
> 309.4713<br>
> 310.1999<br>
> 310.9285<br>
> 311.6570<br>
> 312.3856<br>
> 313.1142<br>
> 313.8427<br>
> 314.5713<br>
> 315.2999<br>
> 316.0284<br>
> 316.7570<br>
> 317.4856<br>
> 318.2141<br>
> 318.9427<br>
> 319.6713<br>
> 320.3998<br>
> 321.1284<br>
> 321.8569<br>
> 322.5855<br>
> 323.3141<br>
> 324.0426<br>
> 324.7712<br>
> 325.4998<br>
> 326.2283<br>
> 326.9569<br>
> 327.6855<br>
> 328.4140<br>
> 329.1426<br>
> 329.8712<br>
> 330.5997<br>
> 331.3283<br>
> 332.0569<br>
> 332.7854<br>
> 333.5140<br>
> 334.2426<br>
> 334.9711<br>
> 335.6997<br>
> 336.4283<br>
> 337.1568<br>
> ydef 89 levels<br>
> -34.71973<br>
> -34.11872<br>
> -33.51342<br>
> -32.90385<br>
> -32.29005<br>
> -31.67207<br>
> -31.04995<br>
> -30.42374<br>
> -29.79348<br>
> -29.15923<br>
> -28.52103<br>
> -27.87895<br>
> -27.23304<br>
> -26.58335<br>
> -25.92998<br>
> -25.27294<br>
> -24.61234<br>
> -23.94821<br>
> -23.28067<br>
> -22.60976<br>
> -21.93555<br>
> -21.25815<br>
> -20.57760<br>
> -19.89401<br>
> -19.20746<br>
> -18.51802<br>
> -17.82580<br>
> -17.13087<br>
> -16.43335<br>
> -15.73330<br>
> -15.03085<br>
> -14.32607<br>
> -13.61906<br>
> -12.90993<br>
> -12.19879<br>
> -11.48574<br>
> -10.77088<br>
> -10.05432<br>
> -9.336166<br>
> -8.616524<br>
> -7.895515<br>
> -7.173248<br>
> -6.449829<br>
> -5.725380<br>
> -5.000008<br>
> -4.273834<br>
> -3.546967<br>
> -2.819534<br>
> -2.091644<br>
> -1.363419<br>
> -0.6349640<br>
> 9.3582153E-02<br>
> 0.8221283<br>
> 1.550529<br>
> 2.278679<br>
> 3.006462<br>
> 3.733765<br>
> 4.460464<br>
> 5.186440<br>
> 5.911591<br>
> 6.635788<br>
> 7.358917<br>
> 8.080879<br>
> 8.801544<br>
> 9.520813<br>
> 10.23856<br>
> 10.95470<br>
> 11.66911<br>
> 12.38168<br>
> 13.09231<br>
> 13.80090<br>
> 14.50734<br>
> 15.21154<br>
> 15.91339<br>
> 16.61279<br>
> 17.30966<br>
> 18.00390<br>
> 18.69541<br>
> 19.38412<br>
> 20.06992<br>
> 20.75273<br>
> 21.43247<br>
> 22.10907<br>
> 22.78243<br>
> 23.45250<br>
> 24.11917<br>
> 24.78239<br>
> 25.44209<br>
> 26.09818<br>
> zdef 1 linear 1 1<br>
> tdef 213 linear 12Z01OCT2011 1440MN<br>
> VARS 1<br>
> prec 1 0 ACUMULATED TOTAL PRECIPITATION (CUMULUS + GRID SCALE) (mm)<br>
> ENDVARS<br>
><br>
><br>
><br>
><br>
> José Augusto P. Veiga,<br>
><br>
> ======================================<br>
> Coordenador do curso de Meteorologia da UEA<br>
> Universidade do Estado do Amazonas<br>
> Departamento de Meteorologia<br>
> Escola Superior de Tecnologia (EST)<br>
> -----------------------------------------------------------------------------<br>
> Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
> Work phone: (92) 3878 4333, Ramal 4333<br>
> Cell phone : (92) 8196 7122<br>
> Skype: veiga_j.a.p.<br>
> -----------------------------------------------------------------------------<br>
> CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank">http://lattes.cnpq.br/4027612512091565</a><br>
> URL:<a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a><br>
> -----------------------------------------------------------------------------<br>
><br>
><br>
><br>
><br>
><br>
> On Tue, Jul 8, 2014 at 12:19 AM, Andrew Revering <<a href="mailto:andy@f5data.com">andy@f5data.com</a>> wrote:<br>
> This is a real guess since I've never worked with an irregular grid in GrADS, but couldn't you just regrid to a certain degree grid and it would interpolate to a regular grid?<br>
><br>
> IE<br>
><br>
> 'define newgrid = re(oldgrid,1.0)'<br>
><br>
> would regrid it to a 1.0° grid??<br>
><br>
> While we're on the topic, how would you import/display an irregular grid in GrADS? Lets say you have surface temperatures to plot?<br>
><br>
> Andrew Revering - Follow @andrewrevering on Twitter<br>
> Convective Development, Inc.<br>
> PO Box 511, Cambridge, MN 55008<br>
> <a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a><br>
><br>
><br>
> On Mon, Jul 7, 2014 at 11:13 PM, Jose Augusto Paixão Veiga <<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>> wrote:<br>
> Dear Kishore,<br>
><br>
> 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>
><br>
> cdo import_binary (Abort): I/O error reading record!<br>
><br>
><br>
> Do you have any idea what does it mean?<br>
><br>
> Thanks in advance.<br>
><br>
><br>
><br>
><br>
> On Mon, Jul 7, 2014 at 11:35 PM, Kishore Ragi <<a href="mailto:kishoreragi@gmail.com">kishoreragi@gmail.com</a>> wrote:<br>
> cdo -f nc import_binary xxxxxxx.ctl <a href="http://yyyyyyy.nc" target="_blank">yyyyyyy.nc</a><br>
><br>
><br>
><br>
><br>
> José Augusto P. Veiga,<br>
><br>
> ======================================<br>
> Coordenador do curso de Meteorologia da UEA<br>
> Universidade do Estado do Amazonas<br>
> Departamento de Meteorologia<br>
> Escola Superior de Tecnologia (EST)<br>
> -----------------------------------------------------------------------------<br>
> Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>
> Work phone: (92) 3878 4333, Ramal 4333<br>
> Cell phone : (92) 8196 7122<br>
> Skype: veiga_j.a.p.<br>
> -----------------------------------------------------------------------------<br>
> CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank">http://lattes.cnpq.br/4027612512091565</a><br>
> URL:<a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a><br>
> -----------------------------------------------------------------------------<br>
><br>
><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>
><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>
><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>
><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>
><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>
><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>
><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>
<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>