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

S Br sbr.climate at gmail.com
Thu Apr 25 10:22:32 MDT 2019


Hi Rick,
Please find herewith attached the datafile (it is a small file).
My NCL is 6.4.0.
My Linux PC 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.

On Thu, Apr 25, 2019 at 4:35 PM Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> I doubt it has to do with the version and OS you are using. Are you able
> to send me your datafile (you can send it directly to me)?
>
> Rick
>
>
> On Thu, Apr 25, 2019 at 9:23 AM S Br <sbr.climate at gmail.com> wrote:
>
>> Hi Barry,
>> I tried as you suggested. It still doesn't work. It just plot the contour
>> but doesn't fill with colours.
>> I don't know if it is something with the NCL version and the Linux PC I
>> am using.
>>
>> Best,
>> S.
>>
>> On Thu, Apr 25, 2019 at 1:08 PM Barry Lynn <barry.h.lynn at gmail.com>
>> wrote:
>>
>>> 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
>>>
>>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> 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/20190425/d40c72a8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: precip.gpcp.mon.mean.nc
Type: application/x-netcdf
Size: 538129 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190425/d40c72a8/attachment-0001.nc>


More information about the ncl-talk mailing list