<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">No actually it giving error at line 13 (if(rainmax<=10)</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"><VAR id=yui-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=hr readonly="true" contenteditable="false"></DIV><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> fadzil mnor <fadzilmnor84@gmail.com><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 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"
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></body></html>