<div dir="ltr"><div>I think there is typo, replace:<br>From:<br><span style="font-variant-ligatures:no-common-ligatures">cmap(<span class="gmail-aBn" tabindex="0"><span class="gmail-aQJ">10:11</span></span>,)        = 0.0</span><br><br></div>to <span style="font-variant-ligatures:no-common-ligatures">cmap(<span class="gmail-aBn" tabindex="0"><span class="gmail-aQJ">10:11</span></span>,:)        = 0.0</span><br><div><br></div><div>If at later stage you are using "gsn_define_colormap" then it should be:<br><span style="font-variant-ligatures:no-common-ligatures">cmap(<span class="gmail-aBn" tabindex="0"><span class="gmail-aQJ">10:11</span></span>,0:2)        = 0.0</span><br></div><div><br></div><div>Cheers,<br></div><div>Rashed<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 10, 2018 at 4:55 PM, Ty Buckingham <span dir="ltr"><<a href="mailto:ty.buckingham@manchester.ac.uk" target="_blank">ty.buckingham@manchester.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hi there,
<div><br>
</div>
<div>Is it possible to change a single color in an already constructed color map to transparent?</div>
<div><br>
</div>
<div>As an example: I wish to use the "hotcold_18lev" color table, but wish to change the white to transparent. I do not have editing permission to the NCARG root hence cannot change the RGBA value directly. Is it possible to change it within the NCL script?</div>
<div><br>
</div>
<div>Initially, I tried this:</div>
<div><br>
</div>
<div>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">cmap                = read_colormap_file("hotcold_<wbr>18lev")</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">cmap(10:11,)        = 0.0                ; makes whites transparent</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
res@cnFillColors    = cmap</p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<br>
</p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2">Yet received the error:</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2"><br>
</font></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">fatal:Error in subscript, normal subscripting is being used, make sure named subscripting has not been used</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2">which is related to the "cmap(10:11,)" line. </font></span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><font size="2"><br>
</font></span></p>
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2">Thanks in advance!</font></p><span class="HOEnZb"><font color="#888888">
<p style="margin-right:0px;margin-left:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)">
<font size="2">Ty</font></p>
</font></span></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>