<div dir="ltr"><div class="gmail_default" style="font-size:small">Sun,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It helps if you can include a graphic that shows exactly what the issue is, as I'm not sure what you mean by "<span style="font-size:12.8px">I cannot get colors over the ocean and land". Do you mean that you are only seeing filled contours?</span></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you could write "mor" to a netCDF file, and send me the file, then I can run the script to see what's going on. I have a feeling that there may be an issue with either draw order, or missing values.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To write "mor" to a file:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">fout = addfile("<a href="http://formary.nc">formary.nc</a>","c")</div><div class="gmail_default" style="font-size:small">fout->mor = mor</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Then send me the <a href="http://formary.nc">formary.nc</a> file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 9, 2017 at 2:47 PM, Sunmin Park <span dir="ltr"><<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I am trying to fill colors in the ocean and land. I also use “rasterfill”.<br>
<br>
When I use raster fill, I cannot get colors over the ocean and land even though I have following;<br>
<br>
res@cnFillOn = True<br>
res@mpOceanFillColor = "lightblue" ; array index in color map<br>
res@mpLandFillColor = "light yellow" ;ienna" ; for land, ocean, and inland h20<br>
<br>
when I turn off raster fill I get less dataset presented over the plot…<br>
<br>
res = True ; plot mods desired<br>
res@cnFillOn = True ; turn on color<br>
res@gsnSpreadColors = True ; use full color map<br>
res@cnLinesOn = False ; no contour lines<br>
res@cnLineLabelsOn = False ; no line labels<br>
res@cnFillMode = "RasterFill" ; Raster Mode<br>
<br>
res@gsnDraw = False ; don't draw yet<br>
res@gsnFrame = False ; don't advance frame yet<br>
res@gsnAddCyclic = False<br>
<br>
res@cnFillDrawOrder = "Predraw" ; areas before map gets set<br>
<br>
res@mpOceanFillColor = "lightblue" ; array index in color map<br>
res@mpLandFillColor = "light yellow" ;ienna" ; for land, ocean, and inland h20<br>
<br>
res@cnLevelSelectionMode = "ExplicitLevels"<br>
res@cnLevels=(/1,2,3,4,5/)<br>
res@cnFillColors = (/2,3,4,8,9,10/) ;need to have one more number than levels, legend has one more space (room)<br>
<br>
res@tmXBLabelFontHeightF = 0.014 ; adjust some font heights<br>
res@tmYLLabelFontHeightF = 0.014<br>
res@tiMainFontHeightF = 0.022<br>
res@txFontHeightF = 0.017<br>
res@lbLabelBarOn = False ; turn off label bar<br>
<br>
plot = new(1,graphic)<br>
@cnFillOn = Truelot(0) = gsn_csm_contour_map_ce(wks,<wbr>mor,res)<br>
<br>
ppres = True<br>
ppres@gsnPanelLabelBar = True ; common label bar<br>
gsn_panel(wks,plot,(/1,1/),<wbr>ppres)<br>
<br>
I appreciate any helps and comments.<br>
<br>
Thank you<br>
Sun-<br>
<br>
<br>
<br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>