[ncl-talk] Country Boundaries and Black color.

David Brown dbrown at ucar.edu
Wed Sep 17 11:30:37 MDT 2014


If you want both the continental outlines and the borders between countries
to be blue, you should set both
mpGeophysicalLineColor
and
mpNationalLineColor to "blue"

Incidentally there is also a
mpNationalLineThicknessF resource
 -dave


On Wed, Sep 17, 2014 at 8:34 AM, Rick Brownrigg <brownrig at ucar.edu> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/9e41d764/attachment.html 


More information about the ncl-talk mailing list