<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><span></span></div><div dir="ltr" id="yui_3_16_0_1_1445250909914_16678"> Hi Mary. <br class="" id="yui_3_16_0_1_1445250909914_16689">I have tried three things for giving a range to the rainfall. Pls see the lines 91 to 110 of my script. <br class="" id="yui_3_16_0_1_1445250909914_16691"><br class="" id="yui_3_16_0_1_1445250909914_16693"><br class="" id="yui_3_16_0_1_1445250909914_16695"><br class="" id="yui_3_16_0_1_1445250909914_16697">1. I tried the following. <br class="" id="yui_3_16_0_1_1445250909914_16699"><br class="" id="yui_3_16_0_1_1445250909914_16701">1. print(nrf)<br class="" id="yui_3_16_0_1_1445250909914_16703"> 92 colors = where(((rf.ge.0.1).and.(rf.lt.2.5)),"Blue"," ") ; This is a string variable<br class="" id="yui_3_16_0_1_1445250909914_16705"> 93 colors = where(((rf.ge.2.5).and.(rf.lt.7.5)),"Red"," ")<br class="" id="yui_3_16_0_1_1445250909914_16707"> 94 ; colors = where(((rf.ge.7.5).and.(rf.lt.15.5)),"Yellow"," ")<br class="" id="yui_3_16_0_1_1445250909914_16709"> 95 ; colorss= stringtoint(colors)<br class="" id="yui_3_16_0_1_1445250909914_16711"> <br class="" id="yui_3_16_0_1_1445250909914_16713">2nd
Method in which I have defined the colors as an array. So there is
error on line 106. Also this will give an individual color to each data.
<br class="" id="yui_3_16_0_1_1445250909914_16715">Variable: colors<br class="" id="yui_3_16_0_1_1445250909914_16717">Type: integer<br class="" id="yui_3_16_0_1_1445250909914_16719">Total Size: 16 bytes<br class="" id="yui_3_16_0_1_1445250909914_16721"> 4 values<br class="" id="yui_3_16_0_1_1445250909914_16723">Number of Dimensions: 1<br class="" id="yui_3_16_0_1_1445250909914_16725">Dimensions and sizes: [4]<br class="" id="yui_3_16_0_1_1445250909914_16727">Coordinates: <br class="" id="yui_3_16_0_1_1445250909914_16729">(0) 1<br class="" id="yui_3_16_0_1_1445250909914_16731">(1) 21<br class="" id="yui_3_16_0_1_1445250909914_16733">(2) 41<br class="" id="yui_3_16_0_1_1445250909914_16735">(3) 61<br class="" id="yui_3_16_0_1_1445250909914_16737">fatal:Subscript out of range, error in subscript #0<br class="" id="yui_3_16_0_1_1445250909914_16739">fatal:An error occurred reading colors<br class="" id="yui_3_16_0_1_1445250909914_16741">fatal:["Execute.c":8578]:Execute: Error occurred at or near line 106 in file stn-v3.ncl<br class="" id="yui_3_16_0_1_1445250909914_16743"><br class="" id="yui_3_16_0_1_1445250909914_16745"><a class="" id="yui_3_16_0_1_1445250909914_16747" href="mailto:aditya@agniilap">aditya@agniilap</a>:~/geeta/ncl$ <br class="" id="yui_3_16_0_1_1445250909914_16749"><br class="" id="yui_3_16_0_1_1445250909914_16751">can U pls suggest???I also tried combining two statements with where but that did not work. <br class="" id="yui_3_16_0_1_1445250909914_16753"> Geeta. <br class="" id="yui_3_16_0_1_1445250909914_16755"><br class="" id="yui_3_16_0_1_1445250909914_16757"></div><div id="yui_3_16_0_1_1445250909914_16680" class="signature">Geeta.</div></div></body></html>