<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Nick I changed things in the script and in CTL as you suggest me, but the problem persist.<div><br></div><div>My Script:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'reinit'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">* <span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Data to be regrided into the defalt data</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'open uvtwg_ncep.ctl'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">* <span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Default data</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'open uvtwg_ecmwf.ctl'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set gxout fwrite'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set fwrite uvtwg_new.bin'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'variavel=lterp(u.1,u.2)'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'d variavel'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'disable fwrite'</div></div><div><br></div><div><br></div><div>The CTL modified</div><div><br></div><div><div><font class="Apple-style-span" color="#0964f6">dset uvtwg_new.bin</font></div><div><font class="Apple-style-span" color="#0964f6">undef 9.999E+20 </font></div><div><font class="Apple-style-span" color="#0964f6">title NCEP 1.5x1.5 graus </font></div><div><font class="Apple-style-span" color="#0964f6">xdef 240 linear 0.0 1.5</font></div><div><font class="Apple-style-span" color="#0964f6">ydef 121 linear -90.0 1.5</font></div><div><font class="Apple-style-span" color="#0964f6">zdef 1 linear 1 1 </font></div><div><font class="Apple-style-span" color="#0964f6">tdef 1 linear JAN1979 1mo </font></div><div><font class="Apple-style-span" color="#0964f6">vars 1</font></div><div><font class="Apple-style-span" color="#0964f6">u 0 99 zonal wind (U) [m/sec] </font></div><div><font class="Apple-style-span" color="#0964f6">endvars</font></div></div><div><br></div><div>Any other hint?</div><div><br></div><div><br></div><div>Thanks for help.</div><div><br></div><div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: arial; font-size: small; "><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>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<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 color="#333333" style="background-color: rgb(255, 255, 255); ">http://lattes.cnpq.br/4027612512091565</font></a><br>URL:<font style="background-color: rgb(255, 255, 0); "><a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a></font></font></div><div><font color="#333333"><a href="http://nmet.wordpress.com/">http://nmet.wordpress.com/</a></font></div><div><font color="#333333"><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">-----------------------------------------------------------------------------</span></font></div></span></div></div></span></div></div>
</div>
<br><div><div>On Nov 29, 2011, at 9:48 AM, Nick Heath wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>José Augusto P. Veiga,<br><br>You can remove the 'set gxout shaded' when you are writing to a file. In the control file for the new data you created trying making this change:<br><br>dset uvtwg_new.bin<br>undef 9.999E+20<br>title NCEP 1.5x1.5 graus<br>xdef 240 linear 0.0 1.5<br>ydef 121 linear -90.0 1.5<br>zdef 1 linear 1 1<br>tdef 1 linear JAN1979 1mo<br>vars 1<br>u 0 99 zonal wind (U) [m/sec] <br>endvars<br><br>In the past, I have found that in the variable description I needed 0 99 instead of what was originally in there. I'm not sure if that will fix it, but it's worth a shot.<br>Good luck.<br><br>-Nick<br><br><br>----- Original Message -----<br>From: Jose Augusto Paixão Veiga <<a href="mailto:veiga.uea@gmail.com">veiga.uea@gmail.com</a>><br>Date: Tuesday, November 29, 2011 1:36 pm<br>Subject: [gradsusr] help with regrid<br>To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br><br><blockquote type="cite">Dear all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am trying to regrid NCEP (2.5 x 2.5, one time, one level) data <br></blockquote><blockquote type="cite">into a ECMWF (1.5x1.5, one time, one level) data, with lterp <br></blockquote><blockquote type="cite">command, issuing to compare both. To do this job, I used the script <br></blockquote><blockquote type="cite">bellow:<br></blockquote><blockquote type="cite">'reinit'<br></blockquote><blockquote type="cite">* Data to be regrided into the defalt data<br></blockquote><blockquote type="cite">'open uvtwg_ncep.ctl'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">* Default data<br></blockquote><blockquote type="cite">'open uvtwg_ecmwf.ctl'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">'variavel=lterp(u.1,u.2)'<br></blockquote><blockquote type="cite">'d variavel'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">'set gxout fwrite'<br></blockquote><blockquote type="cite">'set fwrite uvtwg_new.bin'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">'set gxout shaded'<br></blockquote><blockquote type="cite">'d variavel'<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">'disable fwrite' <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">After running the above script I construct the ctl file to receive <br></blockquote><blockquote type="cite">the uvtwg_new.bin. And so far so good. However, when I opened GrAds <br></blockquote><blockquote type="cite">and displayed the variable recorded it saw as it was shifted in <br></blockquote><blockquote type="cite">relation to the original data.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I have attached both figures and included bellow the CTL files that <br></blockquote><blockquote type="cite">I am using as a hope to some help.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Original CTL (NCEP)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">dset uvtwg_ncep.bin<br></blockquote><blockquote type="cite">undef 9.999E+20 <br></blockquote><blockquote type="cite">title NCEP 2.5x2.5 graus <br></blockquote><blockquote type="cite">xdef 144 linear 0.0 2.5<br></blockquote><blockquote type="cite">ydef 73 linear -90.0 2.5<br></blockquote><blockquote type="cite">zdef 1 linear 1 1 <br></blockquote><blockquote type="cite">tdef 1 linear JAN1979 1mo <br></blockquote><blockquote type="cite">vars 5<br></blockquote><blockquote type="cite">u 1 33,100 zonal wind (U) [m/sec] <br></blockquote><blockquote type="cite">v 1 34,100 meridional wind (V) [m/sec] <br></blockquote><blockquote type="cite">t 1 11,100 temperature (T) [C] <br></blockquote><blockquote type="cite">w 1 39,100 vertical velocity (w) [Pa/s] <br></blockquote><blockquote type="cite">g 1 40,100 geopotencial (w) [m²/s²]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Defalt CTL (ECMWF)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">dset uvtwg_ecmwf.bin<br></blockquote><blockquote type="cite">undef 9.999E+20 <br></blockquote><blockquote type="cite">title ERA INTERIN 1.5x1.5 grau <br></blockquote><blockquote type="cite">xdef 240 linear 0.0 1.5<br></blockquote><blockquote type="cite">ydef 121 linear -90.0 1.5<br></blockquote><blockquote type="cite">zdef 1 linear 1 1 <br></blockquote><blockquote type="cite">tdef 1 linear JAN1979 1mo <br></blockquote><blockquote type="cite">vars 5<br></blockquote><blockquote type="cite">u 1 33,100 zonal wind (U) [m/sec] <br></blockquote><blockquote type="cite">v 1 34,100 meridional wind (V) [m/sec] <br></blockquote><blockquote type="cite">t 1 11,100 temperature (T) [C] <br></blockquote><blockquote type="cite">w 1 39,100 vertical velocity (w) [Pa/s] <br></blockquote><blockquote type="cite">g 1 40,100 geopotencial (w) [m²/s²] <br></blockquote><blockquote type="cite">endvars<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">CTL for the regrided data (uvtwg_new.bin)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">dset uvtwg_new.bin<br></blockquote><blockquote type="cite">undef 9.999E+20 <br></blockquote><blockquote type="cite">title NCEP 1.5x1.5 graus <br></blockquote><blockquote type="cite">xdef 240 linear 0.0 1.5<br></blockquote><blockquote type="cite">ydef 121 linear -90.0 1.5<br></blockquote><blockquote type="cite">zdef 1 linear 1 1 <br></blockquote><blockquote type="cite">tdef 1 linear JAN1979 1mo <br></blockquote><blockquote type="cite">vars 1<br></blockquote><blockquote type="cite">u 1 33,100 zonal wind (U) [m/sec] <br></blockquote><blockquote type="cite">endvars<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks in advance,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">José Augusto P. Veiga, <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">======================================<br></blockquote><blockquote type="cite">Universidade do Estado do Amazonas <br></blockquote><blockquote type="cite">Departamento de Meteorologia<br></blockquote><blockquote type="cite">Escola Superior de Tecnologia (EST)<br></blockquote><blockquote type="cite">--------------------------------------------------------------------<br></blockquote><blockquote type="cite">---------<br></blockquote><blockquote type="cite">Av. Darcy Vargas, 1200, Manaus-AM Brasil<br></blockquote><blockquote type="cite">Work phone: (92) 3878 4333<br></blockquote><blockquote type="cite">Skype: veiga_j.a.p.<br></blockquote><blockquote type="cite">--------------------------------------------------------------------<br></blockquote><blockquote type="cite">---------<br></blockquote><blockquote type="cite">CV: <a href="http://lattes.cnpq.br/4027612512091565">http://lattes.cnpq.br/4027612512091565</a><br></blockquote><blockquote type="cite">URL:http://scientificmet.wordpress.com/<br></blockquote><blockquote type="cite"><a href="http://nmet.wordpress.com/">http://nmet.wordpress.com/</a><br></blockquote><blockquote type="cite">--------------------------------------------------------------------<br></blockquote><blockquote type="cite">---------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br><br><br><br><br>Nick Heath<br>Graduate Student<br>Florida State University<br>Department of Earth, Ocean, and Atmospheric Science<br>Love Bldg. Rm 311<br><br>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></div></blockquote></div><br></div></body></html>