[ncl-talk] Contour fill doesn't work...

Barry Lynn barry.h.lynn at gmail.com
Thu Apr 25 06:08:00 MDT 2019


Please try something like this (you can change the intervals).  You can
also use "ispan" to span intervals and just specify the color table you
want to use (without explicitly nameing them).

 opts_Prec at cnLevelSelectionMode = "ExplicitLevels"

  opts_Prec at cnFillOn             = True

   opts_Prec at cnLevels             = (/ 1,5, 10., 15., \

                                     20, 30,40,50,60/)

    opts_Prec at cnFillColors         =
(/"White","White","AntiqueWhite","AntiqueWhite3", \

                                    "chartreuse", \

                                    "chartreuse3","ForestGreen", \


"Yellow","Orange","Red","HotPink3","HotPink1","HotPink","Violet"/)



On Thu, Apr 25, 2019 at 12:15 PM S Br <sbr.climate at gmail.com> wrote:

> Hi Barry,
> Thanks for your suggestion. Please find here attached the map. It does
> plot the contour but couldn't fill with colours.
>
> Best,
> S.
>
> On Thu, Apr 25, 2019 at 10:11 AM Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> Could you please provide the map it is producing.
>>
>> Also you should check the min and max of your data.
>>
>> printMinMax(Var_name,False)
>>
>> and see if they make sense.
>>
>> Thank you
>>
>> On Thu, Apr 25, 2019 at 11:52 AM S Br <sbr.climate at gmail.com> wrote:
>>
>>> Dear User,
>>> I am writing a simple script to see the contours filled with colour
>>> (res at cnFillOn = True) but it doesn't show any colours. It shows only
>>> the contours and colour bar.  What could be the probable region?
>>> I am using NCL V 6.4.0
>>> My Linux version is:
>>> Linux tree17sbr 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC
>>> 2019 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> Thanks.
>>> S
>>>
>>> begin
>>>
>>>   in1 = addfile("precip.gpcp.mon.mean.nc","r")
>>>   ann1=in1->precip(0,:,:)
>>> ;************************************
>>> ;create plot
>>> ;************************************
>>>   wks = gsn_open_wks("png","test")             ; send graphics to PNG
>>> file
>>>   res                     = True
>>>   res at cnFillOn            = True             ; turn on color
>>>   plot = gsn_csm_contour_map(wks,ann1,res)
>>>
>>> end
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Associate Scientist, Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>>
>>

-- 
Barry H. Lynn, Ph.D
Senior Associate Scientist, Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190425/b8bffa1c/attachment.html>


More information about the ncl-talk mailing list