<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>[ncl-talk] Plot of constant values</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Ok, sorry if I got wrong since I called functions instead of resources.<BR>
I'm trying to make a plot of NetCDF file, by using a tiling approach and making a subset of the data.<BR>
Although I add the following two lines in my script, as you suggested, I can't obtain what I'd like to.&nbsp;&nbsp;<BR>
<BR>
--------------------------------<BR>
res@cnConstFEnableFill = True&nbsp;&nbsp; |<BR>
res@cnConstFLabelOn = False&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
--------------------------------<BR>
<BR>
Attached you will find:<BR>
<BR>
- file_input_crop.nc (NETCDF input file that I'm using)<BR>
- tms_output.png (an example of output .PNG that I got)<BR>
- tms_test.ncl (the script that I'm using for the plot)<BR>
<BR>
Looking at the output, I believe that NCL isn't able to get the constant value in the selected bounding area.<BR>
<BR>
Maybe I'm not using appropriately the resources.<BR>
<BR>
Thank you for the help<BR>
<BR>
Raffaele<BR>
<BR>
-----Original Message-----<BR>
From: Alan Brammer [<A HREF="mailto:abrammer@albany.edu">mailto:abrammer@albany.edu</A>]<BR>
Sent: Tue 11/11/2014 6:08 PM<BR>
To: Raffaele Quarta<BR>
Cc: ncl-talk@ucar.edu<BR>
Subject: Re: [ncl-talk] Plot of constant values<BR>
<BR>
It'll help everyone solve this by describing how it is not working?&nbsp; Also<BR>
fyi these are resources not functions.<BR>
<BR>
<BR>
This works exactly as expected for me in 6.2.0 and 6.2.1.<BR>
<BR>
<BR>
x = new ( (/100,100/), float)<BR>
x = 100<BR>
<BR>
wks = gsn_open_wks(&quot;X11&quot;,&quot;ConstFill_wks&quot;)<BR>
<BR>
res = True<BR>
res@cnFillOn = True&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;;;;&nbsp; The contour needs to be filled to<BR>
start with, for a constant value to be filled.<BR>
res@cnConstFEnableFill = True<BR>
res@cnConstFLabelOn = False<BR>
<BR>
plot = gsn_csm_contour(wks, x, res)<BR>
<BR>
<BR>
<BR>
<BR>
Alan Brammer<BR>
<BR>
<BR>
<BR>
On Tue, Nov 11, 2014 at 11:29 AM, Raffaele Quarta &lt;<BR>
raffaele.quarta@linksmt.it&gt; wrote:<BR>
<BR>
&gt;&nbsp; Hi,<BR>
&gt;<BR>
&gt; I'm using the 6.2.0 NCL version. Actually, I'm dealing with the problem to<BR>
&gt; plot an area with constant value.<BR>
&gt; I saw that starting from the version 6.2.0, the following function is able<BR>
&gt; to solve the problem.<BR>
&gt;<BR>
&gt; -------------------------<BR>
&gt; cnConstFEnableFill<BR>
&gt;<BR>
&gt; Available in version 6.2.0 and later.<BR>
&gt; If the boolean resource cnConstFEnableFill is set to True, then in most<BR>
&gt; cases, constant or near-constant fields will be rendered as a filled area,<BR>
&gt; rather than having the contoured area remain blank. By default, the<BR>
&gt; constant field informational text box will still appear; turn it off by<BR>
&gt; setting cnConstFLabelOn to False.<BR>
&gt;<BR>
&gt; In the future, cnConstFEnableFill will likely default to True, with<BR>
&gt; cnConstFLabelOn defaulting to False unless contour line drawing is enabled.<BR>
&gt;<BR>
&gt; Default: False<BR>
&gt; -----------------------<BR>
&gt;<BR>
&gt; I tried to use this solution but it seems not working. Maybe it a bug of<BR>
&gt; the software?<BR>
&gt; Can you suggest a different solution?<BR>
&gt;<BR>
&gt; Thank you very much.<BR>
&gt;<BR>
&gt; Raffaele<BR>
&gt;<BR>
&gt; --<BR>
&gt; This email was Virus checked by Astaro Security Gateway. <A HREF="http://www.sophos.com">http://www.sophos.com</A><BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; ncl-talk mailing list<BR>
&gt; List instructions, subscriber options, unsubscribe:<BR>
&gt; <A HREF="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</A><BR>
&gt;<BR>
&gt;<BR>
<BR>
--<BR>
This email was Virus checked by Astaro Security Gateway. <A HREF="http://www.sophos.com">http://www.sophos.com</A><BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>