<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<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_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>
<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>
</div>
</div>
</body>
</html>