<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear Mr Charles Seman,</DIV>
<DIV> </DIV>
<DIV> Regret to inform you that your suggested modification to my script did not help. </DIV>
<DIV> </DIV>
<DIV> Anyway, I am pleased to inform you that my friend, Mr Kumar Subramaniam of the Malaysian Meteorological Department, was able to assist me to modify my script to make it work. We are willing to share the script (as attached) with you and all other GrADS users. Also, I am convinced that fndlvl() is not applicable for my stated purpose.</DIV>
<DIV> </DIV>
<DIV> Again, thank you and best regards.</DIV>
<DIV> </DIV>
<DIV>Ooi</DIV>
<DIV><BR><BR>--- On <B>Wed, 24/3/10, Charles Seman <I><Charles.Seman@noaa.gov></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Charles Seman <Charles.Seman@noaa.gov><BR>Subject: Re: [gradsusr] Help in showing the example of using fndlvl(), max() and maxloc()<BR>To: "See Hai Ooi" <axl419@yahoo.com><BR>Date: Wednesday, 24 March, 2010, 11:44 PM<BR><BR>
<DIV id=yiv1282689964>Ooi,<BR><BR>I downloaded your script to a local directory, and took a look at your "search" loop for the maximum wind level...<BR><BR>Instead of doing a double-while loop, try this:<BR><BR> 'large=mw1'<BR> k=2<BR> while (k <= 12)<BR> if ('mw'k > 'large')<BR> 'large=mw'k<BR> id=k<BR> endif<BR> k=k+1<BR> endwhile<BR> 'max=large'<BR> 'plev='id<BR><BR>Hope this helps,<BR>Chuck</DIV></BLOCKQUOTE></td></tr></table><br>
<hr size=1> <a href="http://sg.rd.yahoo.com/aa/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/aa/"> Get your new Email address! </a> <br>
Grab the Email name you've always wanted before someone else does!