<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try changing statements like this:<div>&nbsp;&nbsp; if (rainmax&gt;10 &amp; &lt;=24)</div><div>to look like this:</div><div>&nbsp;&nbsp; if (rainmax&gt;10 &amp; rainmax&lt;=24)</div><div><br></div><div>--Jennifer</div><div><br><div><div>On May 30, 2011, at 1:30 AM, hassan quamrul wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: arial, helvetica, sans-serif; font-size: 10pt; position: static; z-index: auto; "><span style="RIGHT: auto"> <div style="RIGHT: auto"><span style="RIGHT: auto">Dear All,</span></div> <div><span></span>&nbsp;</div> <div><span>I am trying to plot rainfall from WRF output for different range (say 10 mm to 250mm) for a perticular color cobination colorbar .Please see below the script, but it not working&nbsp;(if statement).</span></div> <div style="RIGHT: auto"><span style="RIGHT: auto">What's wrong. Any can help? Please.</span></div> <div style="RIGHT: auto"><span style="RIGHT: auto"></span>&nbsp;</div> <div style="RIGHT: auto"><span style="RIGHT: auto" lang="EN"> <div>'reinit'</div> <div>'open 2011052900.ctl'</div> <div>'set display color white'</div> <div>'c'</div> <div>'set gxout shaded'</div> <div>'set mpdset hires'</div> <div style="RIGHT: auto">'set lat 18 28'</div> <div style="RIGHT: auto">'set lon 84 97'</div> <div>'set t 9'</div> <div>'define rainmax=max(max(rainc,lon=84,lon=97),lat=18,lat=28)'</div> <div>'d rainmax'</div> <div style="RIGHT: auto">rainmax=subwrd(result,10)</div> <div style="RIGHT: auto">if( rainmax=&lt;10 )</div> <div style="RIGHT: auto">'set clevs .1 1 2 4 6 8 10'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if(rainmax&gt;10 &amp; &lt;=24)</div> <div style="RIGHT: auto">'set clevs 1 4 8 12 16 20 24'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div>*endif</div> <div style="RIGHT: auto">if(rainmax&gt;24 &amp; &lt;=30)</div> <div style="RIGHT: auto">'set clevs 1 5 10 15 20 25 30'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if( rainmax&gt;30 &amp; &lt;=40 )</div> <div style="RIGHT: auto">'set clevs 1 5 10 15 20 30 40'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if( rainmax&gt;50 &amp; &lt;=60 )</div> <div style="RIGHT: auto">'set clevs 1 5 10 20 30 40 60'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if( rainmax&gt;60 &amp; &lt;=100 )</div> <div style="RIGHT: auto">'set clevs 1 10 20 40 60 80 100'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if( rainmax&gt;100 &amp; &lt;=140 )</div> <div style="RIGHT: auto">'set clevs 1 10 20 40 70 100 140'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if( rainmax&gt;140 &amp; &lt;=180 )</div> <div style="RIGHT: auto">'set clevs 1 10 20 40 80 120 180'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">if( rainmax&gt;180 &amp; &lt;=250 )</div> <div style="RIGHT: auto">'set clevs 1 10 20 40 80 160 250'</div> <div style="RIGHT: auto">'set ccols 0 3 10 7 12 8 2 6 6'</div> <div style="RIGHT: auto">endif</div> <div style="RIGHT: auto">'d rainmax'</div> <div style="RIGHT: auto">'cbar'</div> <div style="RIGHT: auto">'draw title Rainfall(mm), 00Z,19.08.10 to 00Z,20.08.10'</div> <div style="RIGHT: auto">'printim wrf_rain_2010081900_24.gif'</div></span></div> <div style="RIGHT: auto">&nbsp;</div> <div style="RIGHT: auto">&nbsp;</div> <div><span>regards.<var id="yiv2088147396yui-ie-cursor"></var>&nbsp;</span><br style="RIGHT: auto" class="yui-cursor"></div> <div></div> <div style="RIGHT: auto">&nbsp;</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</div></span></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><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">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></div></body></html>