<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Deba,
<div class=""><br class="">
</div>
<div class="">When Red=Green=Blue, one is left with something between black and white, dependent on the saturation. 255 255 255 = white; 0 0 0 = black. The last 4 colors in your custom file are all R=G=B, so they will be some shade of grey.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 12, 2022, at 4:52 AM, Debasish Hazra <<a href="mailto:debasish.hazra5@gmail.com" class="">debasish.hazra5@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">I created a new colorbar following $NCARG_ROOT/lib/ncarg/colormaps/grads_default.rgb and named them as I need them from GrADS :
<div class="">ncolors = 8<br class="">
# r g b<br class="">
240 240 240<br class="">
220 220 255<br class="">
165 165 255<br class="">
255 105 180<br class="">
40 40 40<br class="">
80 80 80<br class="">
120 120 120<br class="">
160 160 160<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">copied to as $NCARG_ROOT/lib/ncarg/colormaps/grads_defaultprecip.rgb and in NCL programm calling it as gsn_define_colormap(wks,"grads_defaultprecip"), but I am getting all shades of gray. instead of green and yellow produced in Grads. Do I need
to convert GrADS rgb values for ncl ? Attached is two color pictures. Any suggestions.</div>
<div class="">Thanks</div>
<div class="">Deba<br class="">
</div>
<div class=""><br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022 at 6:35 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank" class="">shea@ucar.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" class=""><a href="https://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml#GrADS" target="_blank" class=""><b class="">https://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml#GrADS</b></a></div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Jan 11, 2022 at 3:11 PM Buzan, Jonathan via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">Hello Debasish,
<div class=""><br class="">
</div>
<div class="">There’s a whole section on creating color tables:</div>
<div class=""><a href="https://www.ncl.ucar.edu/Document/Graphics/create_color_table.shtml" target="_blank" class="">https://www.ncl.ucar.edu/Document/Graphics/create_color_table.shtml</a></div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 11, 2022, at 10:56 PM, Debasish Hazra via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a>> wrote:</div>
<br class="">
<div class="">
<div dir="ltr" class="">Hello,
<div class="">How do I convert GrADS rgb colorbar to NCL colormap. I have the following in GrADS:</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">'set rgb 79 240 240 240'<br class="">
</div>
<div class="">'set rgb 20 220 220 255'<br class="">
</div>
<div class="">'set rgb 19 165 165 255'</div>
<div class="">'set rgb 98 255 105 180'<br class="">
'set rgb 33 40 40 40'<br class="">
</div>
<div class="">'set rgb 44 80 80 80'<br class="">
'set rgb 55 120 120 120'<br class="">
'set rgb 66 160 160 160'</div>
</div>
<div class=""><br class="">
</div>
<div class="">Any help ? </div>
<div class="">Thanks</div>
<div class="">Debasish</div>
</div>
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" class="">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
</blockquote>
</div>
<span id="cid:f_kyb0b9s90"><gradsone.jpg></span><span id="cid:f_kyb0b9ss1"><ncl_cbfromgrads.jpg></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>