<div dir="ltr"><div><div>Hi David,<br><br></div>It looks like you have mpFillOn set to False. I set it to True and your script (with minor mods) worked for me.<br><br></div>BTW: its not necessary to explicitly add colors to the workstation colormap with newer versions of ncl. You could simply write:<br>
<br> res@mpLandFillColor = (/222,184,135/) / 255.0<br><br><div class="gmail_extra">Hope that helps...<br></div><div class="gmail_extra">Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 11:08 AM, David Hebert <span dir="ltr"><<a href="mailto:david.hebert@nrlssc.navy.mil" target="_blank">david.hebert@nrlssc.navy.mil</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to use mpLandFillColor on a plot to fill the land. However,<br>
this does not seem to be working, and I get a white background. I am<br>
using NCL V6.1.0. Here is the major plotting portion of the code. Any<br>
help is greatly appreciated!<br>
<br>
Thank you,<br>
David<br>
<br>
<br>
cmap = "BlAqGrYeOrRe"<br>
<br>
res = True<br>
res@gsnDraw = True<br>
res@gsnFrame = True<br>
res@gsnMaximize = False<br>
<br>
res@mpProjection = "Mercator"<br>
res@mpGridAndLimbOn = True ; turn on lat/lon lines<br>
res@mpPerimOn = True ; turn off box around plot<br>
res@mpGridSpacingF = 1.<br>
es@mpGridLatSpacingF = 1. ; spacing for lat lines<br>
res@mpGridLonSpacingF = 1. ; spacing for lon lines<br>
res@mpFillOn = False<br>
<br>
res@mpLimitMode = "LatLon" ; use lat/lon<br>
res@mpMinLonF = -95.5<br>
res@mpMinLatF = 29.0<br>
res@mpMaxLonF = -91.5<br>
res@mpMaxLatF = 30.5<br>
<br>
<br>
res@gsnAddCyclic = False<br>
; res@mpDataBaseVersion = "HighRes"<br>
res@mpDataBaseVersion = "MediumRes"<br>
res@mpDataSetName = "Earth..4"<br>
res@mpOutlineSpecifiers = (/"North America:States"/)<br>
<br>
res@cnFillOn = True ; fill contours<br>
res@cnFillMode = "RasterFill" ; turn raster on<br>
res@cnLinesOn = False ; turn off the contour lines<br>
res@cnLineLabelsOn = False ; turn off line labels<br>
res@cnFillDrawOrder = "Predraw" ; draw contours first,<br>
then continents<br>
<br>
res@trGridType = "TriangularMesh" ; allow missing coordinates?<br>
<br>
res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels<br>
res@gsnSpreadColors = True ; use full color range<br>
res@cnMinLevelValF = 0. ; set min contour level<br>
res@cnMaxLevelValF = 10. ; set max contour level<br>
res@cnLevelSpacingF = 0.1 ; set contour spacing<br>
res@gsnSpreadColorStart = 2 ; start at color 2<br>
res@gsnSpreadColorEnd = -2 ; don't use added burlywood<br>
<br>
<br>
; --- make plot<br>
wks = gsn_open_wks("ps","Images/elevation_max_zoom_ncl")<br>
gsn_define_colormap(wks,cmap) ; choose colormap defined above<br>
<br>
<br>
; add "burlywood" for land color<br>
bwood = (/222,184,135/) / 255.0<br>
bw = NhlNewColor(wks,bwood(0),bwood(1),bwood(2))<br>
res@mpLandFillColor = bw<br>
; res@mpLandFillColor = "burlywood"<br>
plot = gsn_csm_contour_map(wks,elev,res)<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div></div>