<div dir="ltr"><div><div>Hi Dave,<br><br></div>I get the same blank map running your script using 6.3.0 on yellowstone. However, running your script unmodified using a current development snapshot of the code, I get a correctly filled, mono-colored map (attached). So the issue appears to have cropped up before and has been fixed -- I don't know the details. <br><br>Do you need a binary of the development branch -- its usually quite stable?<br><br></div><div>Rick<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 30, 2015 at 6:25 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</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">NCL team,<div><br></div><div>I am making ordinary color filled contour maps of gridded data, with fixed contour levels. When all data values lie between two adjacent contour levels, all one color is expected. However, NCL 6.3.0 fails to color fill in these cases. The result is all white maps that interrupt presentation sequences.</div><div><br></div><div>Attached plot #1 shows color fill forced by adding an intermediate contour level. Plot #2 shows the problem, a blank plot when fewer contour levels are selected, and all one color expected.</div><div><br></div><div>Here is the script for plot #2, the non-filled map. Plot #1 results by changing cnLevelSpacingF to 6 instead of 12. The input file is in the third attachment:</div><div><br></div><div><div>begin</div><div> f = addfile ("<a href="http://data.no-color.nc" target="_blank">data.no-color.nc</a>", "r")</div><div> dat = f->dat</div><div> print ("Data range of full grid = " + min (dat) + ", " + max (dat))</div><div><br></div><div> wks = gsn_open_wks ("x11", "plot.test")</div><div> res = True</div><div> res@cnFillOn = True</div><div> res@cnConstFEnableFill = True</div><div><br></div><div> res@cnLevelSelectionMode = "ManualLevels"</div><div> res@cnMinLevelValF = 0</div><div> res@cnMaxLevelValF = 24</div><div> res@cnLevelSpacingF = 12 ; smaller generates color fill</div><div><br></div><div> res@mpMinLonF = 234 ; any boundary outside data limits</div><div> res@mpMaxLonF = 260 ; generates color fill</div><div> res@mpMinLatF = 31</div><div> res@mpMaxLatF = 50</div><div><br></div><div> res@mpCenterLonF = (res@mpMinLonF + res@mpMaxLonF) / 2.0</div><div> res@gsnAddCyclic = False</div><div> res@mpFillOn = False</div><div> res@mpOutlineBoundarySets = "AllBoundaries"</div><div><br></div><div> plot = gsn_csm_contour_map_ce (wks, dat, res)</div><div>end</div></div><div><br></div><div>Please note that two different kinds of changes result in correct color fill, just not all one color which is what I need. You can decrease cnLevelSpacingF to some value such as 6, which generates more than one color. You can also change any of the map border resources (mpMinLonF etc.) to extend outside the data limits, resulting in missing values along the edges showing as blank (white) areas.</div><div><br></div><div>Both of these changes have something in common. They all result in at least one color variation inside the plot frame. The failure occurs when the entire plot frame should be one solid color with no breaks for missing values or contour lines.</div><div><br></div><div>Is this a bug in NCL? Is there an existing solution? Can you please either change NCL to prevent this kind of blanking, or else add a resource similar to cnConstFEnableFill, to allow users to control the blanking in such cases? Thanks for your consideration.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>--Dave</div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>