<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Thanks for the clarification, Andrew. I think this is a bug — the grfill code path is not doing what it’s supposed to with a contour level of -1. The ’not drawing anything when the color is -1’ is a feature of the new shading algorithm, and it may not have
propagated over to the grfill code. I will look into it. I can offter two workarounds.
<div><br>
</div>
<div>1. Define a color that is fully transparent and use that instead of -1.
<div><br>
</div>
<div>‘set gxout grfill'</div>
<div>‘set rgb 42 0 0 0 0 ‘</div>
<div>'set ccols 41 42'</div>
<div>
<div>‘set clevs 0.05’</div>
<div>‘d pval’</div>
<div><br>
</div>
<div>2. Leave the -1 in there, but use ‘d maskout(pval,0.5-pval)’ instead of ‘d pval’.</div>
<div><br>
</div>
<div><br>
</div>
<div>—Jennifer</div>
<div><br>
<div>
<div>On Jan 27, 2016, at 9:05 AM, Andrew Friedman <<a href="mailto:andfried@gmail.com">andfried@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>Hi Jeff,<br>
<br>
</div>
<div>Here's an example of where I have the discrepancy.<br>
</div>
<div>I'm looking at a netcdf file with 2 variables, 'slope' and 'pval' (it's a trend of rainfall). I'm trying to plot the slope using grfill, and to apply the pattern in areas where 'pval' is above a certain value.<br>
</div>
<div><br>
</div>
<div>First, I define a tile as a new color:<br>
'set tile 0 2 6 6 3 0'<br>
'set rgb 41 tile 0'<br>
<br>
Then, I shade the slope:<br>
'set gxout shaded' * (or grfill) <br>
'd slope'<br>
<br>
Third, I apply the pattern fill to pval:<br>
'set clevs 0.05'<br>
'set ccols 41 -1'<br>
'd pval'<br>
<br>
</div>
<div>When I use 'set gxout shaded', the pattern fills on top of the existing shading, as in the GrADS website example. However, when I use 'set gxout grfill', the initial fill disappears in areas without pattern fill. I've attached images showing the differences.<br>
</div>
<div><br>
Any ideas? I know it's not a major issue, but I often look at coarse spatial resolution datasets, and I like the grfill setting to present where the gridbox boundaries are exactly.<br>
</div>
<div><br>
</div>
<div>Thanks,<br>
</div>
Andrew<br>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 26, 2016 at 6:42 PM, Jeff Duda <span dir="ltr">
<<a href="mailto:jeffduda319@gmail.com" target="_blank">jeffduda319@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>Andrew,<br>
</div>
Can you clarify your question please? What exactly do you mean by "tiling"?<br>
<br>
</div>
The difference between grfill and shaded is that shaded color shades between (smoothed) contours drawn by the software, giving your fields a nicer smoother look, whereas grfill just uses color shades to fill by grid box only, with no contour lines drawn to
serve as boundaries for color areas. For very high resolution grids, you won't really see much, if any, difference between a field displayed using grfill and that field displayed using shaded. It only really shows up for coarser grids.<br>
<br>
</div>
Jeff Duda<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div class="h5">On Tue, Jan 26, 2016 at 10:58 AM, Andrew Friedman <span dir="ltr">
<<a href="mailto:andfried@gmail.com" target="_blank">andfried@gmail.com</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div class="h5">
<div dir="ltr">
<div>Hi GrADS users,<br>
<br>
</div>
<div>I am trying to tile areas of significance using grfill. However, I have noticed that tiling seems to behave differently with gxout set to grfill v. shaded. When gxout is set to grfill, all values that are not tiled are return to the background. Does anyone
know a work-around for this?<br>
</div>
<div><br>
</div>
Thanks, Andrew<br>
</div>
<br>
</div>
</div>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<span class="HOEnZb"><font color="#888888"><br>
<br clear="all">
<br>
-- <br>
<div>Jeff Duda<br>
Graduate research assistant<br>
University of Oklahoma School of Meteorology<br>
Center for Analysis and Prediction of Storms<br>
</div>
</font></span></div>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<span><shaded_example.png></span><span><grfill_example.png></span>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div>
<div>
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer M. Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
111 Research Hall, Mail Stop 2B3<br>
George Mason University<br>
4400 University Drive<br>
Fairfax, VA 22030 <br>
<br>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
</body>
</html>