<div dir="ltr"><div><div><div><div><div><div>HI Ryan,<br><br></div>Alan is right about the enhanced color model in later versions of NCL -- I&#39;d also recommend upgrading if you can.<br><br></div>However a couple of comments about your existing script:<br><br></div>i) Are you setting the resources mpFillOn = True?  An are you setting mpFillBoundarySets to something appropriate (e.g., &quot;National&quot;)?<br><br></div>ii) Under older versions of Ncl, named colors get mapped to the &quot;closest&quot; color in the workstation&#39;s color map.  I notice you reference the colors you want, and *then* set the colormap to something specific.  It&#39;s likely the named colors are getting mapped to the default workstation colormap (although I can&#39;t explain the randomness -- should be consistently the wrong color!).  You might try placing your call to gsn_define_colormap() before any other references to color.<br><br></div>Hope that helps...<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 3:57 PM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You’re ncl version is many years old.  This might not be a problem of version, but a lot of the colour functionality has improved a fair amount since 6.0. <div><br></div><div>Mainly. in 6.0 colours (or the nearest? equivalent) are pulled from the colormap.  When you upgrade, colours do not have to be in the colormap and thus your named colours will be what you expect. </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><div style="word-wrap:break-word">##############################<br>Alan Brammer,<div>Post-Doc Researcher</div><div><br></div><div>Department of Atmospheric and Environmental Sciences,<br>University at Albany, State University of New York, Albany, NY, 12222<div><a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a><br>##############################</div></div></div></span></div></div>
</div>
<br><div><blockquote type="cite"><div><div class="h5"><div>On 14 Mar 2016, at 16:47, Ryan Connelly &lt;<a href="mailto:rconne01@gmail.com" target="_blank">rconne01@gmail.com</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><span style="font-size:12.8px">I&#39;m using V6.0.0.  </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Trying to fill in my map background in a light tan and make my state lines a dark brown.  Should be easy, but something is bonkers.  When I use named color variables, the state line color will sometimes plot as something else (&quot;Brown&quot; plots as red, &quot;Green&quot; plots as blue, &quot;Grey30&quot; plots as purple, etc.).  I also cannot get the map fill color to be anything at all, named color or number.<div><br></div><div>Here&#39;s the section that contains my map plotting options:</div><div><br></div><div><div><font face="monospace, monospace">; Set some basic resources</font></div><div><font face="monospace, monospace">  res = True</font></div><div><font face="monospace, monospace">  res@MainTitle                   = &quot;REAL-TIME WRF&quot;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  pltres = True</font></div><div><font face="monospace, monospace">  mpres = True</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  mpres@mpGeophysicalLineColor      = &quot;orange4&quot; ; inexplicably picks a random different color</font></div><div><font face="monospace, monospace">  mpres@mpNationalLineColor         = &quot;Black&quot;</font></div><div><font face="monospace, monospace">  mpres@mpUSStateLineColor          = &quot;Black&quot;</font></div><div><font face="monospace, monospace">  mpres@mpLimbLineColor             = &quot;Black&quot;</font></div><div><font face="monospace, monospace">  mpres@mpPerimLineColor            = &quot;Black&quot;</font></div><div><font face="monospace, monospace">  mpres@mpMonoFillColor             = True</font></div><div><font face="monospace, monospace">  mpres@mpLandFillColor             = 7 ; inexplicably doesn&#39;t do anything at all</font></div><div><font face="monospace, monospace">  mpres@mpGeophysicalLineThicknessF = 4.0</font></div><div><font face="monospace, monospace">  mpres@mpGridLineThicknessF        = 2.0</font></div><div><font face="monospace, monospace">  mpres@mpLimbLineThicknessF        = 2.0</font></div><div><font face="monospace, monospace">  mpres@mpNationalLineThicknessF    = 2.0</font></div><div><font face="monospace, monospace">  mpres@mpUSStateLineThicknessF     = 2.0</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">  gsn_define_colormap(wks,&quot;BkBlAqGrYeOrReViWh200&quot;)</font></div></div><div><br></div><div><br></div><div>Thanks,</div><div>Ryan</div></div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font size="1">Ryan Connelly</font></div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><font><font size="1">M.S. Student in Atmospheric Sciences, </font><span style="font-size:x-small">Stony Brook University</span><br></font></div><div dir="ltr" style="font-size:12.8px"><div><font><font size="1">B.S. in Meteorology with Minors in Mathematics and GIS, </font><span style="font-size:x-small">Valparaiso University</span></font></div></div><div><a href="mailto:rconne01@gmail.com" style="font-size:x-small" target="_blank">rconne01@gmail.com</a><br></div><div><font size="1"><a href="mailto:ryan.connelly@stonybrook.edu" target="_blank">ryan.connelly@stonybrook.edu</a></font></div></div></div></div></div></div></div></div></div></div>
</div></div></div>
_______________________________________________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><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></div></blockquote></div><br></div></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>