<div dir="ltr">It looks like your irregular grid is in a variable 'prec'. <div><br></div><div>So if you were to do:</div><div><br></div><div>'define precnew = re(prec,0.5)'</div><div><br></div><div>you would have it interpolated to a 0.5 degree grid. You can change the 0.5 to whatever spacing you think is appropriate. </div>
<div><br></div><div>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. :-)</div><div><br></div><div>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.</div>
<div><br></div><div>Others who know more about this can hopefully chime in.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div>Andrew Revering - Follow <a href="https://twitter.com/intent/follow?screen_name=andrewrevering&source=email&variant=2.0&xd_token=ceae5c40173e5" target="_blank">@andrewrevering</a> on Twitter<div>
Convective Development, Inc.<div>PO Box 511, Cambridge, MN 55008</div><div><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a></div></div></div>
<br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 11:41 PM, Jose Augusto Paixão Veiga <span dir="ltr"><<a href="mailto:veiga.uea@gmail.com" target="_blank">veiga.uea@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Andrew,<div><br></div><div>I presume the command <font face="arial, sans-serif">'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.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Yes, I am trying to use regular grid date instead not regular. </font></div><div><font face="arial, sans-serif"><br></font></div><div>
<font face="arial, sans-serif">My original ctl file is bellow. But I need have my dx and dy equally spaced. </font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">I have total precipitation.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Thanks for your e-mail.</font></div><div><font face="arial, sans-serif"><br></font></div><div><div><font color="#ff0000">dset ^sum-prec-OCT-APR-KF-d01.bin</font></div>
<div><font color="#ff0000">undef 1.e30</font></div><div><font color="#ff0000">title OUTPUT FROM WRF V3.5 MODEL</font></div><div><font color="#ff0000">xdef 103 levels </font></div><div><font color="#ff0000"> 262.8432 </font></div>
<div><font color="#ff0000"> 263.5718 </font></div><div><font color="#ff0000"> 264.3003 </font></div><div><font color="#ff0000"> 265.0289 </font></div><div><font color="#ff0000"> 265.7574 </font></div>
<div><font color="#ff0000"> 266.4860 </font></div><div><font color="#ff0000"> 267.2146 </font></div><div><font color="#ff0000"> 267.9431 </font></div><div><font color="#ff0000"> 268.6717 </font></div>
<div><font color="#ff0000"> 269.4003 </font></div><div><font color="#ff0000"> 270.1288 </font></div><div><font color="#ff0000"> 270.8574 </font></div><div><font color="#ff0000"> 271.5860 </font></div>
<div><font color="#ff0000"> 272.3145 </font></div><div><font color="#ff0000"> 273.0431 </font></div><div><font color="#ff0000"> 273.7717 </font></div><div><font color="#ff0000"> 274.5002 </font></div>
<div><font color="#ff0000"> 275.2288 </font></div><div><font color="#ff0000"> 275.9574 </font></div><div><font color="#ff0000"> 276.6859 </font></div><div><font color="#ff0000"> 277.4145 </font></div>
<div><font color="#ff0000"> 278.1431 </font></div><div><font color="#ff0000"> 278.8716 </font></div><div><font color="#ff0000"> 279.6002 </font></div><div><font color="#ff0000"> 280.3287 </font></div>
<div><font color="#ff0000"> 281.0573 </font></div><div><font color="#ff0000"> 281.7859 </font></div><div><font color="#ff0000"> 282.5144 </font></div><div><font color="#ff0000"> 283.2430 </font></div>
<div><font color="#ff0000"> 283.9716 </font></div><div><font color="#ff0000"> 284.7001 </font></div><div><font color="#ff0000"> 285.4287 </font></div><div><font color="#ff0000"> 286.1573 </font></div>
<div><font color="#ff0000"> 286.8858 </font></div><div><font color="#ff0000"> 287.6144 </font></div><div><font color="#ff0000"> 288.3430 </font></div><div><font color="#ff0000"> 289.0715 </font></div>
<div><font color="#ff0000"> 289.8001 </font></div><div><font color="#ff0000"> 290.5287 </font></div><div><font color="#ff0000"> 291.2572 </font></div><div><font color="#ff0000"> 291.9858 </font></div>
<div><font color="#ff0000"> 292.7144 </font></div><div><font color="#ff0000"> 293.4429 </font></div><div><font color="#ff0000"> 294.1715 </font></div><div><font color="#ff0000"> 294.9001 </font></div>
<div><font color="#ff0000"> 295.6286 </font></div><div><font color="#ff0000"> 296.3572 </font></div><div><font color="#ff0000"> 297.0858 </font></div><div><font color="#ff0000"> 297.8143 </font></div>
<div><font color="#ff0000"> 298.5429 </font></div><div><font color="#ff0000"> 299.2714 </font></div><div><font color="#ff0000"> 300.0000 </font></div><div><font color="#ff0000"> 300.7286 </font></div>
<div><font color="#ff0000"> 301.4571 </font></div><div><font color="#ff0000"> 302.1857 </font></div><div><font color="#ff0000"> 302.9142 </font></div><div><font color="#ff0000"> 303.6428 </font></div>
<div><font color="#ff0000"> 304.3714 </font></div><div><font color="#ff0000"> 305.0999 </font></div><div><font color="#ff0000"> 305.8285 </font></div><div><font color="#ff0000"> 306.5571 </font></div>
<div><font color="#ff0000"> 307.2856 </font></div><div><font color="#ff0000"> 308.0142 </font></div><div><font color="#ff0000"> 308.7428 </font></div><div><font color="#ff0000"> 309.4713 </font></div>
<div><font color="#ff0000"> <a href="tel:310.1999" value="+13101999" target="_blank">310.1999</a> </font></div><div><font color="#ff0000"> <a href="tel:310.9285" value="+13109285" target="_blank">310.9285</a> </font></div>
<div><font color="#ff0000"> 311.6570 </font></div><div><font color="#ff0000"> 312.3856 </font></div>
<div><font color="#ff0000"> 313.1142 </font></div><div><font color="#ff0000"> 313.8427 </font></div><div><font color="#ff0000"> 314.5713 </font></div><div><font color="#ff0000"> 315.2999 </font></div>
<div><font color="#ff0000"> 316.0284 </font></div><div><font color="#ff0000"> 316.7570 </font></div><div><font color="#ff0000"> 317.4856 </font></div><div><font color="#ff0000"> 318.2141 </font></div>
<div><font color="#ff0000"> 318.9427 </font></div><div><font color="#ff0000"> 319.6713 </font></div><div><font color="#ff0000"> 320.3998 </font></div><div><font color="#ff0000"> 321.1284 </font></div>
<div><font color="#ff0000"> 321.8569 </font></div><div><font color="#ff0000"> 322.5855 </font></div><div><font color="#ff0000"> 323.3141 </font></div><div><font color="#ff0000"> 324.0426 </font></div>
<div><font color="#ff0000"> 324.7712 </font></div><div><font color="#ff0000"> 325.4998 </font></div><div><font color="#ff0000"> 326.2283 </font></div><div><font color="#ff0000"> 326.9569 </font></div>
<div><font color="#ff0000"> 327.6855 </font></div><div><font color="#ff0000"> 328.4140 </font></div><div><font color="#ff0000"> 329.1426 </font></div><div><font color="#ff0000"> 329.8712 </font></div>
<div><font color="#ff0000"> 330.5997 </font></div><div><font color="#ff0000"> 331.3283 </font></div><div><font color="#ff0000"> 332.0569 </font></div><div><font color="#ff0000"> 332.7854 </font></div>
<div><font color="#ff0000"> 333.5140 </font></div><div><font color="#ff0000"> 334.2426 </font></div><div><font color="#ff0000"> 334.9711 </font></div><div><font color="#ff0000"> 335.6997 </font></div>
<div><font color="#ff0000"> 336.4283 </font></div><div><font color="#ff0000"> 337.1568 </font></div><div><font color="#ff0000">ydef 89 levels </font></div><div><font color="#ff0000"> -34.71973 </font></div>
<div><font color="#ff0000"> -34.11872 </font></div><div><font color="#ff0000"> -33.51342 </font></div><div><font color="#ff0000"> -32.90385 </font></div><div><font color="#ff0000"> -32.29005 </font></div>
<div><font color="#ff0000"> -31.67207 </font></div><div><font color="#ff0000"> -<a href="tel:31.04995" value="+13104995" target="_blank">31.04995</a> </font></div><div><font color="#ff0000"> -30.42374 </font></div>
<div><font color="#ff0000"> -29.79348 </font></div>
<div><font color="#ff0000"> -29.15923 </font></div><div><font color="#ff0000"> -28.52103 </font></div><div><font color="#ff0000"> -27.87895 </font></div><div><font color="#ff0000"> -27.23304 </font></div>
<div><font color="#ff0000"> -26.58335 </font></div><div><font color="#ff0000"> -25.92998 </font></div><div><font color="#ff0000"> -25.27294 </font></div><div><font color="#ff0000"> -24.61234 </font></div>
<div><font color="#ff0000"> -23.94821 </font></div><div><font color="#ff0000"> -23.28067 </font></div><div><font color="#ff0000"> -22.60976 </font></div><div><font color="#ff0000"> -21.93555 </font></div>
<div><font color="#ff0000"> -21.25815 </font></div><div><font color="#ff0000"> -20.57760 </font></div><div><font color="#ff0000"> -19.89401 </font></div><div><font color="#ff0000"> -19.20746 </font></div>
<div><font color="#ff0000"> -18.51802 </font></div><div><font color="#ff0000"> -17.82580 </font></div><div><font color="#ff0000"> -17.13087 </font></div><div><font color="#ff0000"> -16.43335 </font></div>
<div><font color="#ff0000"> -15.73330 </font></div><div><font color="#ff0000"> -15.03085 </font></div><div><font color="#ff0000"> -14.32607 </font></div><div><font color="#ff0000"> -13.61906 </font></div>
<div><font color="#ff0000"> -12.90993 </font></div><div><font color="#ff0000"> -12.19879 </font></div><div><font color="#ff0000"> -11.48574 </font></div><div><font color="#ff0000"> -10.77088 </font></div>
<div><font color="#ff0000"> -10.05432 </font></div><div><font color="#ff0000"> -9.336166 </font></div><div><font color="#ff0000"> -8.616524 </font></div><div><font color="#ff0000"> -7.895515 </font></div>
<div><font color="#ff0000"> -7.173248 </font></div><div><font color="#ff0000"> -6.449829 </font></div><div><font color="#ff0000"> -5.725380 </font></div><div><font color="#ff0000"> -5.000008 </font></div>
<div><font color="#ff0000"> -4.273834 </font></div><div><font color="#ff0000"> -3.546967 </font></div><div><font color="#ff0000"> -2.819534 </font></div><div><font color="#ff0000"> -2.091644 </font></div>
<div><font color="#ff0000"> -1.363419 </font></div><div><font color="#ff0000"> -0.6349640 </font></div><div><font color="#ff0000"> 9.3582153E-02</font></div><div><font color="#ff0000"> 0.8221283 </font></div>
<div><font color="#ff0000"> 1.550529 </font></div><div><font color="#ff0000"> 2.278679 </font></div><div><font color="#ff0000"> 3.006462 </font></div><div><font color="#ff0000"> 3.733765 </font></div>
<div><font color="#ff0000"> 4.460464 </font></div><div><font color="#ff0000"> 5.186440 </font></div><div><font color="#ff0000"> 5.911591 </font></div><div><font color="#ff0000"> 6.635788 </font></div>
<div><font color="#ff0000"> 7.358917 </font></div><div><font color="#ff0000"> 8.080879 </font></div><div><font color="#ff0000"> 8.801544 </font></div><div><font color="#ff0000"> 9.520813 </font></div>
<div><font color="#ff0000"> 10.23856 </font></div><div><font color="#ff0000"> 10.95470 </font></div><div><font color="#ff0000"> 11.66911 </font></div><div><font color="#ff0000"> 12.38168 </font></div>
<div><font color="#ff0000"> 13.09231 </font></div><div><font color="#ff0000"> 13.80090 </font></div><div><font color="#ff0000"> 14.50734 </font></div><div><font color="#ff0000"> 15.21154 </font></div>
<div><font color="#ff0000"> 15.91339 </font></div><div><font color="#ff0000"> 16.61279 </font></div><div><font color="#ff0000"> 17.30966 </font></div><div><font color="#ff0000"> 18.00390 </font></div>
<div><font color="#ff0000"> 18.69541 </font></div><div><font color="#ff0000"> 19.38412 </font></div><div><font color="#ff0000"> 20.06992 </font></div><div><font color="#ff0000"> 20.75273 </font></div>
<div><font color="#ff0000"> 21.43247 </font></div><div><font color="#ff0000"> 22.10907 </font></div><div><font color="#ff0000"> 22.78243 </font></div><div><font color="#ff0000"> 23.45250 </font></div>
<div><font color="#ff0000"> 24.11917 </font></div><div><font color="#ff0000"> 24.78239 </font></div><div><font color="#ff0000"> 25.44209 </font></div><div><font color="#ff0000"> 26.09818 </font></div>
<div><font color="#ff0000">zdef 1 linear 1 1 </font></div><div><font color="#ff0000">tdef 213 linear 12Z01OCT2011 1440MN </font></div><div><font color="#ff0000">VARS 1 </font></div><div><font color="#ff0000">prec 1 0 ACUMULATED TOTAL PRECIPITATION (CUMULUS + GRID SCALE) (mm)</font></div>
<div><font color="#ff0000">ENDVARS</font></div></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"> </font></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 12:19 AM, Andrew Revering <span dir="ltr"><<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">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? <div><br></div><div>IE</div>
<div><br></div><div>'define newgrid = re(oldgrid,1.0)'</div><div><br></div><div>would regrid it to a 1.0° grid??</div><div><br></div><div>While we're on the topic, how would you import/display an irregular grid in GrADS? Lets say you have surface temperatures to plot?</div>
</div><div class="gmail_extra"><br clear="all"><div>Andrew Revering - Follow <a href="https://twitter.com/intent/follow?screen_name=andrewrevering&source=email&variant=2.0&xd_token=ceae5c40173e5" target="_blank">@andrewrevering</a> on Twitter<div>
Convective Development, Inc.<div>PO Box 511, Cambridge, MN 55008</div><div><a href="http://www.convectivedevelopment.com/" target="_blank">http://www.convectivedevelopment.com/</a></div></div></div>
<br><br><div class="gmail_quote"><div><div>On Mon, Jul 7, 2014 at 11:13 PM, Jose Augusto Paixão Veiga <span dir="ltr"><<a href="mailto:veiga.uea@gmail.com" target="_blank">veiga.uea@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div class="gmail_extra">Dear Kishore,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I tried this (<span style="font-family:'Andale Mono';font-size:13px">cdo -f nc import_binary my.ctl <a href="http://output.nc" target="_blank">output.nc</a></span>), however I just receive the message bellow:</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"> <span style="font-family:'Andale Mono';font-size:13px">cdo import_binary (Abort): I/O error reading record!</span></div><div class="gmail_extra"><span style="font-family:'Andale Mono';font-size:13px"><br>
</span></div><div class="gmail_extra"><span style="font-family:'Andale Mono';font-size:13px"><br></span></div><div class="gmail_extra">Do you have any idea what does it mean?<br><span style="font-family:'Andale Mono';font-size:13px"> </span><br>
Thanks in advance.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 11:35 PM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>cdo -f nc import_binary xxxxxxx.ctl <a href="http://yyyyyyy.nc" target="_blank">yyyyyyy.nc</a></div>
</blockquote></div><br><br><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>
</div></div>
<br></div></div><div>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>
<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></blockquote></div><br></div>