[ncl-talk] Plotting rainfall in certain range with Different colors

Geeta Geeta geetag54 at yahoo.com
Mon Oct 19 12:04:33 MDT 2015


This query is in continuation to the previous ones in which I am trying to plot a rainfall range in one color and the 2nd range with another color. the same that I have posted too. 
Now I just tried with 
following changes in my script. 
do n                     = 0,  nrf-1
    101   if ((rf(n).ge.0.1).and.(rf(n).lt.2.5)) then 
    102   txres at txFontColor        = 2          ; RHS should be an integer
    103 ;  
    104   else if ((rf(n).ge.2.5).and.(rf(n).lt.7.5)) then
    105   txres at txFontColor        = 9          ; RHS should be an integer
    106   
    107   else if ((rf(n).ge.7.5).and.(rf(n).lt.15.5)) then
    108   txres at txFontColor        = 13          ; RHS should be an integer
    109   
    110   end  if
    111   end  if
    112   end  if                  

    121   text(n)                  = gsn_add_text(wks,plot,"   "+sprintf("%9.4g",rf(n)),lon(n),lat(n),txres)
    122    end do
but unable to do so. pls suggest
I am attaching my script too.
 Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151019/baaad650/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stn-v3.ncl
Type: application/octet-stream
Size: 4606 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151019/baaad650/attachment.obj 


More information about the ncl-talk mailing list