<div dir="ltr">I created a new colorbar following $NCARG_ROOT/lib/ncarg/colormaps/grads_default.rgb and named them as I need them from GrADS :<div>ncolors = 8<br># r g b<br> 240 240 240<br> 220 220 255<br> 165 165 255<br> 255 105 180<br> 40 40 40<br> 80 80 80<br> 120 120 120<br> 160 160 160<br></div><div><br></div><div>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>Thanks</div><div>Deba<br></div><div><br></div></div><br><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">shea@ucar.edu</a>> wrote:<br></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"><a href="https://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml#GrADS" target="_blank"><b>https://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml#GrADS</b></a></div><br><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">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hello Debasish,
<div><br>
</div>
<div>There’s a whole section on creating color tables:</div>
<div><a href="https://www.ncl.ucar.edu/Document/Graphics/create_color_table.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/create_color_table.shtml</a></div>
<div><br>
</div>
<div>Cheers,</div>
<div>-Jonathan</div>
<div><br>
</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Jan 11, 2022, at 10:56 PM, Debasish Hazra via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Hello,
<div>How do I convert GrADS rgb colorbar to NCL colormap. I have the following in GrADS:</div>
<div><br>
</div>
<div>
<div>'set rgb 79 240 240 240'<br>
</div>
<div>'set rgb 20 220 220 255'<br>
</div>
<div>'set rgb 19 165 165 255'</div>
<div>'set rgb 98 255 105 180'<br>
'set rgb 33 40 40 40'<br>
</div>
<div>'set rgb 44 80 80 80'<br>
'set rgb 55 120 120 120'<br>
'set rgb 66 160 160 160'</div>
</div>
<div><br>
</div>
<div>Any help ? </div>
<div>Thanks</div>
<div>Debasish</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div>