<!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>RE: [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. <BR>
<BR>
--------------------------------<BR>
res@cnConstFEnableFill = True |<BR>
res@cnConstFLabelOn = False |<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? 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("X11","ConstFill_wks")<BR>
<BR>
res = True<BR>
res@cnFillOn = True ;;;; 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 <<BR>
raffaele.quarta@linksmt.it> wrote:<BR>
<BR>
> Hi,<BR>
><BR>
> I'm using the 6.2.0 NCL version. Actually, I'm dealing with the problem to<BR>
> plot an area with constant value.<BR>
> I saw that starting from the version 6.2.0, the following function is able<BR>
> to solve the problem.<BR>
><BR>
> -------------------------<BR>
> cnConstFEnableFill<BR>
><BR>
> Available in version 6.2.0 and later.<BR>
> If the boolean resource cnConstFEnableFill is set to True, then in most<BR>
> cases, constant or near-constant fields will be rendered as a filled area,<BR>
> rather than having the contoured area remain blank. By default, the<BR>
> constant field informational text box will still appear; turn it off by<BR>
> setting cnConstFLabelOn to False.<BR>
><BR>
> In the future, cnConstFEnableFill will likely default to True, with<BR>
> cnConstFLabelOn defaulting to False unless contour line drawing is enabled.<BR>
><BR>
> Default: False<BR>
> -----------------------<BR>
><BR>
> I tried to use this solution but it seems not working. Maybe it a bug of<BR>
> the software?<BR>
> Can you suggest a different solution?<BR>
><BR>
> Thank you very much.<BR>
><BR>
> Raffaele<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>
> ncl-talk mailing list<BR>
> List instructions, subscriber options, unsubscribe:<BR>
> <A HREF="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</A><BR>
><BR>
><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>
</FONT>
</P>
</BODY>
</HTML>