<div dir="ltr"><div dir="ltr"><div>Dear grads users!</div><div><br></div><div>After a long search in google I found that a solution was already given in your website. It is an issue related to
the fact that grads does not support long variable names. To solve it: I
provided in control file an "alias" variable name that follows grads
rules like: <br></div><div>MAXUVV400_1000mb=>MAXUVV400</div><div>So I use the following commands to create this alias:</div><div><br></div><div>$<b> cat </b>201104270600_wrfout_arw_d01.ctl<b> | sed 's/MAXUVV400_1000mb/MAXUVV400_</b><b>1000mb=>MAXUVV400/g' > </b>new_wrfout_arw_d01.ctl</div><div>$<b> </b>mv new_wrfout_arw_d01.ctl 201104270600_wrfout_arw_d01.ctl</div><div><br></div><div>In this case if we look inside <b> 201104270600_wrfout_arw_d01.ctl</b>, we get:</div><div><b>
</b><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><b>MAXUVV400_1000mb=>MAXUVV400</b> 0,108,40000,100000 0,2,220,2 ** 400-1000 mb above ground Hourly Maximum Of Upward Vertical Velocity In The Lowest 400hPa [m/s]</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p></div><div> This
mean that the alias between the two variables was done correctly, and
in the script I use 'd MAXUVV400' instead of 'd MAXUVV400_1000mb' <br></div><div><br></div><div>Thanks.</div><div>Rachid</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 24 Jun 2019 at 20:31, Moustabchir Rachid <<a href="mailto:r.moustabchir@uiz.ac.ma">r.moustabchir@uiz.ac.ma</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Dear Sir!</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">When I try to plot Maximum Updraft Velocity in Previous Hour with a script using 'd MAXUVV400_1000mb' , grads return an error: </p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">
</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Syntax Error: Invalid Operand </p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"> 'maxuvv400_1000mb' not a variable or function name</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"> Error ocurred at column 1</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap">DISPLAY error: Invalid expression </p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"> Expression = maxuvv400_1000mb</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">in the index file of the grib2 file I can find the MAXUVV400_1000mb varible:<br></p>MAXUVV400_1000mb 0,108,40000,100000 0,2,220,2 ** 400-1000 mb above ground Hourly Maximum Of Upward Vertical Velocity In The Lowest 400hPa [m/s]
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Thanking you most sincerely for <span class="gmail-m_-5672892335995052307gmail-il">your</span> <span class="gmail-m_-5672892335995052307gmail-il">time</span> and consideration.</p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p>
<p style="margin:0px;text-indent:0px;white-space:pre-wrap"> Cordially,</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Dr. Rachid Moustabchir <br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Ibn Zohr University</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">Agadir Morocco</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p></div>
</blockquote></div></div>