<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Dear Adams,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Thanks for help. I added the line <SPAN style="RIGHT: auto" lang=EN></div>
<div style="RIGHT: auto">say 'rainmax</div>
<div style="RIGHT: auto">after that it giving the same error but with Non-terminated constant.</div>
<div style="RIGHT: auto">What's the problem?</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"><VAR id=yui-ie-cursor></VAR> </div></SPAN></SPAN>
<DIV></DIV>
<DIV> </DIV>
<div>S.M.Quamrul Hassan<BR>Meteorologist<BR>Storm Warning Centre<BR>Bangladesh Meteorological Department<BR>Agargaon, Dhaka-1207<BR>Tel: +880 2 9135742<BR>Fax: +880 2 8118230<BR>Cell: +8801916255449<BR></div>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr readonly="true" contenteditable="false"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Jennifer Adams <jma@cola.iges.org><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> hassan quamrul <smquamrul77@yahoo.com>; GrADS Users Forum <gradsusr@gradsusr.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, May 30, 2011 7:53 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [gradsusr] What's wrong in the script?<BR></FONT><BR>
<DIV id=yiv221529764>Oh, sorry, I missed this comment that your error was at line 13. My earlier correct is still valid, but your script hasn't gotten there yet.
<DIV><BR></DIV>
<DIV>You have this:</DIV>
<DIV>
<BLOCKQUOTE type="cite">
<DIV>
<DIV style="BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial, helvetica, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times, serif; FONT-SIZE: 12pt"> 'd rainmax'<BR>> rainmax=subwrd(result,10)</DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV><BR></DIV>
<DIV>
<DIV>But you are parsing the output from the display command with 'gxout shaded'. The 'result' variable probably contains something like this: </DIV></DIV>
<DIV>
<DIV>"Contouring: 0 to 50 interval 5"</DIV></DIV>
<DIV>and there is no 10th word for subwrd to parse. </DIV>
<DIV>Put some statements in your script like: </DIV>
<DIV> 'say 'rainmax </DIV>
<DIV>and you'll see why it's not working.</DIV>
<DIV>--Jennifer</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV><BR>
<DIV>
<DIV>On May 30, 2011, at 1:57 AM, hassan quamrul wrote:</DIV><BR class=yiv221529764Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV>
<DIV style="BACKGROUND-COLOR: rgb(255,255,255); FONT-FAMILY: arial, helvetica, sans-serif; COLOR: rgb(0,0,0); FONT-SIZE: 10pt">
<DIV><SPAN>No actually it giving error at line 13 (if(rainmax<=10)</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN><VAR id=yiv221529764yui-ie-cursor></VAR></SPAN> </DIV>
<DIV></DIV>
<DIV> </DIV>
<DIV>S.M.Quamrul Hassan<BR>Meteorologist<BR>Storm Warning Centre<BR>Bangladesh Meteorological Department<BR>Agargaon, Dhaka-1207<BR>Tel: +880 2 9135742<BR>Fax: +880 2 8118230<BR>Cell: +8801916255449<BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 10pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Arial>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=yiv221529764hr></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> fadzil mnor <<A href="mailto:fadzilmnor84@gmail.com" rel=nofollow target=_blank ymailto="mailto:fadzilmnor84@gmail.com">fadzilmnor84@gmail.com</A>><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> hassan quamrul <<A href="mailto:smquamrul77@yahoo.com" rel=nofollow target=_blank ymailto="mailto:smquamrul77@yahoo.com">smquamrul77@yahoo.com</A>>; GrADS Users Forum <<A href="mailto:gradsusr@gradsusr.org" rel=nofollow target=_blank ymailto="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A>><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, May 30, 2011 11:40 AM<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [gradsusr] What's wrong in the script?<BR></FONT><BR>Line 20.<BR>Does removing asterisk will solve the prob?<BR><BR>regards,<BR>Fadzil<BR><BR>On 5/30/11, hassan quamrul <<A href="mailto:smquamrul77@yahoo.com" rel=nofollow target=_blank ymailto="mailto:smquamrul77@yahoo.com">smquamrul77@yahoo.com</A>> wrote:<BR>> Dear All,<BR>><BR>> I am trying to plot rainfall from WRF output for different range (say 10 mm<BR>> to 250mm) for a perticular color cobination colorbar .Please see below the<BR>> script, but it not working (if statement).<BR>> What's wrong. Any can help? Please.<BR>><BR>> 'reinit'<BR>> 'open 2011052900.ctl'<BR>> 'set display color white'<BR>> 'c'<BR>> 'set gxout shaded'<BR>> 'set mpdset hires'<BR>> 'set lat 18 28'<BR>> 'set lon 84 97'<BR>> 'set t 9'<BR>> 'define rainmax=max(max(rainc,lon=84,lon=97),lat=18,lat=28)'<BR>> 'd
rainmax'<BR>> rainmax=subwrd(result,10)<BR>> if( rainmax=<10 )<BR>> 'set clevs .1 1 2 4 6 8 10'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> if(rainmax>10 & <=24)<BR>> 'set clevs 1 4 8 12 16 20 24'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> *endif<BR>> if(rainmax>24 & <=30)<BR>> 'set clevs 1 5 10 15 20 25 30'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> if( rainmax>30 & <=40 )<BR>> 'set clevs 1 5 10 15 20 30 40'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> if( rainmax>50 & <=60 )<BR>> 'set clevs 1 5 10 20 30 40 60'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> if( rainmax>60 & <=100 )<BR>> 'set clevs 1 10 20 40 60 80 100'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> if( rainmax>100 & <=140 )<BR>> 'set clevs 1 10 20 40 70 100 140'<BR>> 'set ccols 0 3 10 7 12 8 2 6
6'<BR>> endif<BR>> if( rainmax>140 & <=180 )<BR>> 'set clevs 1 10 20 40 80 120 180'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> if( rainmax>180 & <=250 )<BR>> 'set clevs 1 10 20 40 80 160 250'<BR>> 'set ccols 0 3 10 7 12 8 2 6 6'<BR>> endif<BR>> 'd rainmax'<BR>> 'cbar'<BR>> 'draw title Rainfall(mm), 00Z,19.08.10 to 00Z,20.08.10'<BR>> 'printim wrf_rain_2010081900_24.gif'<BR>><BR>><BR>> regards.<BR>><BR>><BR>> S.M.Quamrul Hassan<BR>> Meteorologist<BR>> Storm Warning Centre<BR>> Bangladesh Meteorological Department<BR>> Agargaon, Dhaka-1207<BR>> Tel: +880 2 9135742<BR>> Fax: +880 2 8118230<BR>> Cell: +8801916255449<BR><BR><BR></DIV></DIV></DIV></DIV>_______________________________________________<BR>gradsusr mailing list<BR><A href="mailto:gradsusr@gradsusr.org" rel=nofollow target=_blank
ymailto="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</A><BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></BLOCKQUOTE></DIV><BR>
<DIV>
<DIV style="WORD-WRAP: break-word; FONT-SIZE: 12px">
<DIV>--</DIV>
<DIV>Jennifer M. Adams</DIV>
<DIV>IGES/COLA</DIV>
<DIV>4041 Powder Mill Road, Suite 302</DIV>
<DIV>Calverton, MD 20705</DIV>
<DIV><A href="mailto:jma@cola.iges.org" rel=nofollow target=_blank ymailto="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV>
<DIV><BR class=yiv221529764khtml-block-placeholder></DIV><BR class=yiv221529764Apple-interchange-newline></DIV></DIV><BR></DIV></DIV><BR><BR></DIV></DIV></div></body></html>