<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1456783205385_15006"><span id="yui_3_16_0_1_1456783205385_15005">Raymond, it is in the script. Although, part of my script got cut off when I was writing the email.</span></div><div id="yui_3_16_0_1_1456783205385_15004" class="">"open NAM12Ztest.ctl"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">"set display color white"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">"clear"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">"set mpdset hires"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">"set grads off"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">"set lev 925"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">t=1</div><div id="yui_3_16_0_1_1456783205385_15004" class="">while (t &lt;= 2)</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'set t 't</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'query dim'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">diminfo=result</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'run rgbset.gs'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp;'set lat 36 39'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp;'set lon -125 -120'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'set clevs 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1.0'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'set ccols 0 4 13 3 10 7 12 8 2'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'set gxout shaded'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define lcl=((TMP2m-DPT2m)*400)'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define tc=(TMPprs-273.15)'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define es=(6.11*exp((17.625*tc)/(tc+243.05)))'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define e=(es*RHprs/100)'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define wr=(622*e/(925-e))'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define ht=(HGTprs*3.28)'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define expo=(exp((2257*wr)/(1004*TMPprs)))'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define numer=(-2.06327*TMPprs/(6516))'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define denom=(pow((RHprs/100),0.46))'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define dthetae=(expo*numer/denom)'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define b=((-6.67*dthetae-0.667)*(-0.1*VVELprs))'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'define c=(0)'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'d b'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp; &nbsp; &nbsp; &nbsp; if (ht &lt;= lcl)</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp; &nbsp; &nbsp; &nbsp; ' d c'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp; &nbsp; &nbsp; &nbsp; endif</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp; &nbsp; &nbsp; &nbsp; if (VVELprs &gt;= 0)</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp; &nbsp; &nbsp; &nbsp; ' d c'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">&nbsp; &nbsp; &nbsp; &nbsp; endif</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'set grads off'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'d b'</div><div id="yui_3_16_0_1_1456783205385_15004" class=""><br id="yui_3_16_0_1_1456783205385_15133" class=""></div><div id="yui_3_16_0_1_1456783205385_15004" class="">"printim testing12Zcloud.png png"</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'clear'</div><div id="yui_3_16_0_1_1456783205385_15004" class="">endwhile</div><div id="yui_3_16_0_1_1456783205385_15004" class="">'quit'</div><div id="yui_3_16_0_1_1456783205385_15004" class="" dir="ltr"><br id="yui_3_16_0_1_1456783205385_15140" class=""></div><div id="yui_3_16_0_1_1456783205385_15004"></div><div id="yui_3_16_0_1_1456783205385_15004" dir="ltr" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div></div><div id="yui_3_16_0_1_1456783205385_15096">&nbsp;</div><div class="signature" id="yui_3_16_0_1_1456783205385_15003">JP Kalb</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Monday, February 29, 2016 3:53 PM, raymond ordinario &lt;raymond1723@gmail.com&gt; wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv1592921222"><div><div dir="ltr">Hi JP,<div><br clear="none"></div><div>it seems that your script omits increment and endwhile line</div><div><br clear="none"></div><div>t=t+1</div><div>endwhile&nbsp;</div><div><br clear="none"></div><div>on the end of your process.</div><div><br clear="none"></div><div><br clear="none"></div><div>Thanks,</div><div><br clear="none"></div><div>Raymond</div></div><div class="yiv1592921222gmail_extra"><br clear="none"><div class="yiv1592921222gmail_quote">On Tue, Mar 1, 2016 at 6:27 AM, JP Kalb <span dir="ltr">&lt;<a rel="nofollow" shape="rect" ymailto="mailto:jpkalb1990@yahoo.com" target="_blank" href="mailto:jpkalb1990@yahoo.com">jpkalb1990@yahoo.com</a>&gt;</span> wrote:<br clear="none"><blockquote class="yiv1592921222gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv1592921222yqt3880689564" id="yiv1592921222yqt99562"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div><span>Hi there,</span></div><div dir="ltr"><span>I am new to learning GrADS. I am having trouble with my if loops for my code.</span></div><div dir="ltr">"open NAM12Ztest.ctl"</div><div dir="ltr">"set display color white"</div><div dir="ltr">"clear"</div><div dir="ltr">"set mpdset hires"</div><div dir="ltr">"set grads off"</div><div dir="ltr">"set lev 925"</div><div dir="ltr">t=1</div><div dir="ltr">while (t &lt;= 2)</div><div dir="ltr">'set t 't</div><div dir="ltr">'query dim'</div><div dir="ltr">diminfo=result</div><div dir="ltr">'run <a rel="nofollow" shape="rect" target="_blank" href="http://rgbset.gs/">rgbset.gs</a>'</div><div dir="ltr">&nbsp;'set lat 36 39'</div><div dir="ltr">&nbsp;'set lon -125 -120'</div><div dir="ltr">'set clevs 0 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1.0'</div><div dir="ltr">'set ccols 0 4 13 3 10 7 12 8 2'</div><div dir="ltr">'set gxout shaded'</div><div dir="ltr">'define lcl=((TMP2m-DPT2m)*400)'</div><div dir="ltr">'define tc=(TMPprs-273.15)'</div><div dir="ltr">'define es=(6.11*exp((17.625*tc)/(tc+243.05)))'</div><div dir="ltr">'define e=(es*RHprs/100)'</div><div dir="ltr">'define wr=(622*e/(925-e))'</div><div dir="ltr">'define ht=(HGTprs*3.28)'</div><div dir="ltr">'define expo=(exp((2257*wr)/(1004*TMPprs)))'</div><div dir="ltr">'define numer=(-2.06327*TMPprs/(6516))'</div><div dir="ltr">'define denom=(pow((RHprs/100),0.46))'</div><div dir="ltr">'define dthetae=(expo*numer/denom)'</div><div dir="ltr">'define b=((-6.67*dthetae-0.667)*(-0.1*VVELprs))'</div><div dir="ltr">'define c=(0)'</div><div dir="ltr">'d b'</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; if (ht &lt;= lcl)</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; ' d c'</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; endif</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; if (VVELprs &gt;= 0)</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; ' d c'</div><div dir="ltr">&nbsp; &nbsp; &nbsp; &nbsp; endif</div><div dir="ltr"></div><div dir="ltr">'set grads off'</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Any help would be appreciated.</div><div dir="ltr">Thanks,</div><span class="yiv1592921222HOEnZb"><font color="#888888"></font></span><div></div><div>&nbsp;</div><div>JP Kalb</div></div></div></div><br clear="none">_______________________________________________<br clear="none">
gradsusr mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:gradsusr@gradsusr.org" target="_blank" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv1592921222gmail_signature"><div dir="ltr"><div>-------------------------------------------------------------------------------------------------------------------------------</div>Raymond C. Ordinario<br clear="none">MS Atmospheric Science<br clear="none">Ateneo De Manila University<br clear="none">Quezon City, Philippines<br clear="none"><br clear="none">Weather Specialist I<br clear="none"><div>Technique Application and Meteorological Satellite Section<br clear="none">Weather DIvision<br clear="none">Philippine Atmospheric, Geophysical and Astronomical Services Admistration<br clear="none">Quezon City, Philippines</div></div></div>
</div></div></div><br><br></div>  </div> </div>  </div></div></body></html>