[ncl-talk] define infill color for inland water bodies

Matthew Fearon Matthew.Fearon at dri.edu
Sun Sep 7 19:27:16 MDT 2014


Thanks, Kyle, but I'm missing something still. My script is below. The wrf_map_overlays function is perhaps messing up the draw order or recoloring inland water bodies white. Any ideas?



type = "png"


wks = gsn_open_wks(type,pname+ndt)

gsn_define_colormap(wks,"MPL_terrain")

res                                = True

res at NoHeaderFooter                 = True


mpres                              = True

mpres at mpDataBaseVersion            = "Ncarg4_0"

mpres at mpDataSetName                = "Earth..1"

mpres at mpNationalLineColor          = "black"

mpres at mpNationalLineThicknessF     = 2

mpres at mpGeophysicalLineColor       = "black"

mpres at mpGeophysicalLineThicknessF  = 2

mpres at mpProvincialLineColor        = "black"

mpres at mpProvincialLineThicknessF   = 3

;mpres at mpFillOn                     = True

;mpres at mpFillDrawOrder              = "PreDraw"

mpres at mpInlandWaterFillColor       = "grey81"

mpres at mpOceanFillColor             = "grey81"

mpres at mpLandFillColor              = "grey81"


pltres = True


var3_res = res

var3_res at ContourParameters     = (/ 0, 3, 1 /)

var3_res at cnFillMode            = "RasterFill"

var3_res at cnFillOn              = True

var3_res at cnRasterSmoothingOn   = False

var3_res at cnFillColors          = (/"grey81","red","green","blue","black"/)

var3_res at cnFillDrawOrder       = "Draw"

con3_var = wrf_contour(f,wks,vmap,var3_res)



pltres at CommonTitle = True

pltres at PlotTitle = ndt

plot = wrf_map_overlays(f,wks,(/con3_var/),pltres,mpres)


________________________________
From: windrunnerxc at gmail.com [windrunnerxc at gmail.com] on behalf of Kyle Griffin [ksgriffin2 at wisc.edu]
Sent: Sunday, September 07, 2014 5:33 PM
To: Matthew Fearon; ncl-talk
Subject: Re: [ncl-talk] define infill color for inland water bodies


Don't use mpFillColor. Use a combination of mpLandFillColor, mpOceanFillColor, and mpInlandWaterFillColor. These are your desired resources.

Kyle

On Sep 7, 2014 4:56 PM, "Matthew Fearon" <Matthew.Fearon at dri.edu<mailto:Matthew.Fearon at dri.edu>> wrote:
Dear NCL Users,

What is the correct method for filling in inland water bodies with a specified color. Here's the resources I have been experimenting with, but none seem to work, eg, inland lakes are consistently colored white not grey81. Thanks, Matt



mpres                              = True

;mpres at mpDataBaseVersion            = "Ncarg4_0"

;mpres at mpDataSetName                = "Earth..4"

mpres at mpNationalLineColor          = "black"

mpres at mpNationalLineThicknessF     = 2

mpres at mpGeophysicalLineColor       = "black"

mpres at mpGeophysicalLineThicknessF  = 2

mpres at mpProvincialLineColor        = "black"

mpres at mpProvincialLineThicknessF   = 3

mpres at mpFillOn                     = True

mpres at mpMonoFillColor              = True

mpres at mpFillColor                  = "grey81"

mpres at mpFillAreaSpecifiers         = "water"   ;"inlandwater"

mpres at mpSpecifiedFillColors        = "grey81"

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140908/4f781724/attachment.html 


More information about the ncl-talk mailing list