[ncl-talk] About ' cnConstFEnableFill '
Toni Klemm
toni-klemm at tamu.edu
Wed Sep 26 13:05:48 MDT 2018
Hi Soares,
I’m not totally sure what the problem is. It might have to do with res at cnLevelSelectionMode = “ExplicitLevels” in your script. This says you want to provide “explicit levels” (= specific numbers) for your legend bar categories, but you don’t do that. Try commenting out that line using “;” or change it to ManualLevels if you know the range of values in your plot. Maybe that’ll give you your map. Search for it here (https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml <https://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml>) if none of this works.
Best,
Toni
Toni Klemm, Ph.D.
Postdoctoral Research Associate
Department of Ecosystem Science and Management
College of Agriculture and Life Sciences
Texas A&M University, College Station, TX
Contributor to the Early Career Climate Forum <http://www.eccforum.org/>
www.toni-klemm.de <http://www.toni-klemm.de/> | @toniklemm <http://twitter.com/toniklemm>
> On Sep 25, 2018, at 6:50 PM, Jose Manuel Soares de Araujo <isakhar.inside13 at gmail.com> wrote:
>
> Dear Mr.Toni
>
> Thank you for reply. I am trying to remove the warning message in the code so I can see the colour map.
> I am sill trying to solve this. Any idea???
>
> Best regards,
> Soares
>
> On Tue, Sep 25, 2018 at 10:19 PM Toni Klemm <toni-klemm at tamu.edu <mailto:toni-klemm at tamu.edu>> wrote:
> Hi Soares,
>
> I think I had the same problem a few weeks ago. I don’t think enabling cnConstFEnableFill will get rid of that warning in your code when you run the script, but it will remove the message in the middle of your plot as shown in example 17.
>
> Are you trying to eliminate the warning message in your graphs or in the code that you see when you run the script?
>
> Toni
>
>
> Toni Klemm, Ph.D.
> Postdoctoral Research Associate
> Department of Ecosystem Science and Management
> College of Agriculture and Life Sciences
> Texas A&M University, College Station, TX
> Contributor to the Early Career Climate Forum <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eccforum.org_&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=OR1WfPoxtUC2S166o_NZVekTSX12svWWMrryKkwg37A&s=u5mdJSIhCzl4U_sMdS7cTyzIbnh5-g5XIKsqy9Njx2M&e=>
> www.toni-klemm.de <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de_&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=OR1WfPoxtUC2S166o_NZVekTSX12svWWMrryKkwg37A&s=HAbmQH9UtsoGEaREiwoMbpGo9lwcKHDoIzZF8fZxJCw&e=> | @toniklemm <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_ToniKlemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=OR1WfPoxtUC2S166o_NZVekTSX12svWWMrryKkwg37A&s=VNDmD98cYO6jHd6T3_KFculSEps5KeBFgaaJzoSI508&e=>
>
>
> On Sep 25, 2018, at 4:21 AM, Jose Manuel Soares de Araujo <isakhar.inside13 at gmail.com <mailto:isakhar.inside13 at gmail.com>> wrote:
>
>> Dear NCL Team
>>
>> I am trying to plot solar radiation using 3 variables: swddif, swddni and coszen but I face the warning message "warning:ContourPlotInitialize: scalar field is constant; no contour lines will appear; use cnConstFEnableFill to enable fill". I try to solve by enable "cnConstFEnableFill" as mentioned in "https://www.ncl.ucar.edu/Applications/coneff.shtml#ex17 <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_coneff.shtml-23ex17&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=EP1xHD_-dpgyuznweGbjwongWs556KltObnHV4R0zPM&s=Q_1OZOgBL4NKbxzufdtol7DHPNHoWjbDKM2aJ2L-Geg&e=>" but same warning is still coming out. Here I attached the code and the result.
>> I am using NCL version 6.5.0.
>>
>> Thank you for your time and consideration.
>>
>> Best regards,
>> Soares
>> <hgt_gsn.png>
>> <dimse.ncl>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=OR1WfPoxtUC2S166o_NZVekTSX12svWWMrryKkwg37A&s=ite5x3O9RxMbtQt5TGlDhUQICcRWyyjcUrD03MxR7Pw&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180926/03b5586c/attachment.html>
More information about the ncl-talk
mailing list