<div dir="ltr"><div class="gmail_default" style="font-size:small">Just an FYI: the example Beáta provided is an excellent one for showing how to create your own color map.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can also change a color map programmatically, if you don't want to create a new color map file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See color_19.ncl at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/color.shtml#ex19">http://www.ncl.ucar.edu/Applications/color.shtml#ex19</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">This uses read_colormap_file to read in the desired color map ("amwg") and then sets the first color to white.</div><div class="gmail_default"><br></div><div class="gmail_default">Cheers,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 5:12 AM, Marston Johnston <span dir="ltr"><<a href="mailto:shejo284@gmail.com" target="_blank">shejo284@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-GB" link="#0563C1" vlink="#954F72"><div class="m_7996196732092222407WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt">Hi Beata,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">It worked perfectly per your instructions. Thanks for the help </span><span style="font-size:11.0pt;font-family:"Apple Color Emoji"">☺</span><span style="font-size:11.0pt"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">Have a great day!<u></u><u></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt">/M<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Marston S. Johnston, PhD<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Department of Earth Sciences<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">University of Gothenburg, Sweden<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Email: <a href="mailto:marston.johnston@gu.se" target="_blank"><span style="color:#0070c0">marston.johnston@gu.se</span></a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">SkypeID: marston.johnston <u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Phone: <a href="tel:+46%2031%20786%2049%2001" value="+46317864901" target="_blank">+46-31-7864901</a> <u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Only the fruitful thing is true!<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p></div><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p></span><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Beáta Szabó-Takács <<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>><br><b>Date: </b>Monday, 15 May 2017 at 11:05<br><b>To: </b>Marston Johnston <<a href="mailto:shejo284@gmail.com" target="_blank">shejo284@gmail.com</a>>, NCL Talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><b>Subject: </b>RE: replace part of colormap</span><span style="color:black"><u></u><u></u></span></p></div><div><div class="h5"><div><p class="MsoNormal"><span style="font-family:"Times New Roman""><u></u> <u></u></span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1f497d">Hi Marston,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1f497d">You can produce a new .rgb color palette by copy „amwg256.rgb” and rename it e.g „amwg2”. Open the created amwg2.rgb file and rewrite the first rgb numbers: 146 112 219 to 255 255 255 and save the file. After that, you have to set your environment variable based on <a href="http://www.ncl.ucar.edu/Document/Graphics/create_color_table.shtml" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Graphics/create_<wbr>color_table.shtml</a> to use awg2.rgb in your script.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1f497d">I hope I could help you!</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1f497d">Best regards,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1f497d">Beata</span><u></u><u></u></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt">From:</span></b><span lang="EN-US" style="font-size:11.0pt"> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.<wbr>edu</a>] <b>On Behalf Of </b>Marston Johnston<br><b>Sent:</b> Monday, May 15, 2017 10:45 AM<br><b>To:</b> NCL Talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br><b>Subject:</b> [ncl-talk] replace part of colormap</span><u></u><u></u></p></div></div><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">Hi,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">I am using the color palette "amwg” which sets a light purple color for the lowest value range.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">However, I would like to set this part of the spectrum to “white” instead.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">I cannot find an example of how this can be done – if it can be done.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">Does anyone have any idea? Appreciate your thoughts.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">Best,</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt">/M</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Marston S. Johnston, PhD</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Department of Earth Sciences</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">University of Gothenburg, Sweden</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Email: <a href="mailto:marston.johnston@gu.se" target="_blank"><span style="color:#0070c0">marston.johnston@gu.se</span></a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">SkypeID: marston.johnston </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Phone: <a href="tel:+46%2031%20786%2049%2001" value="+46317864901" target="_blank">+46-31-7864901</a> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">Only the fruitful thing is true!</span><u></u><u></u></p><p class="MsoNormal"><span style="font-family:"Times New Roman";color:#0070c0">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span><u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div>
<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>
<br></blockquote></div><br></div>