[ncl-talk] Country Boundaries and Black color.

Rick Brownrigg brownrig at ucar.edu
Wed Sep 17 08:34:58 MDT 2014


I can only guess about the second part of your question, as there was no
example provided of what was wrong.  If you want those four very specific
colors, you might want to set explicitly set cnFillColors :

http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillColors

In your case, something like:

res at cnFillColors = (/ 2, 3, 4, 5/)

Where those numbers are the indexes (zero-based) of the colors set in your
workstation colormap.


Make sense?

Rick

On Wed, Sep 17, 2014 at 4:04 AM, Geeta Geeta <geetag54 at yahoo.com> wrote:

> I posted this problem a few minutes ago. I have a few questions pertaining
> to that.
> I want to know why the NEPAL, Pakistan etc countries are not marked in
> Blue Color. the Figure is attached and the Mp resources used are shown
> below.
> ;---------------------------
> ;Map resouces------------------
> res at mpFillOn = False
> ;res at mpOutlineOn = True
> res at mpOutlineBoundarySets = "National"
> res at mpGeophysicalLineColor =  "Blue" ;Color of Conuntry Outline
> res at mpGeophysicalLineThicknessF =  1.5    ;thickness of Country Outline
> res at mpMinLonF=50
> res at mpMaxLonF=120
> res at mpMinLatF=5
> res at mpMaxLatF=35
> ;
>
> The second question. I have not selected the BLACK color for surfaceRain
> greater than 30mm/hr. How NCL is selecting the colors???.
> My color scheme can be seen in the attached script. Color section of the
> script looks like..............
> ;-------------------------------
>   xwks=gsn_open_wks("ps",fili+var_name)
> colors =(/"white","black","white","royal blue","yellow","red"/)
> gsn_define_colormap(xwks,colors)
> ;
>  This figure on Website can be seen on the link(
> ftp://disc2.nascom.nasa.gov/ftp/data/s4pa/TRMM_L2/2A12_BR.6/2009/135/2A12_BR.090515.65505.6.PNG
> )
>
> I am trying to reproduce this figure in the same form.
>
> Hope somebody will suggest. I am very new to NCL.
> Geeta.
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140917/9c7514b4/attachment.html 


More information about the ncl-talk mailing list