[ncl-talk] A fill pallette question

Barry Lynn barry.h.lynn at gmail.com
Sun Oct 22 08:41:24 MDT 2017


Thank you. That's perfect.

The remaining elements are spanned automatically, as the note says.

Barry

On Sun, Oct 22, 2017 at 4:58 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:

> If I understand to the first question correctly, maybe something like:
>
> cmap = read_colormap_file("NCV_rainbow2")
> printVarSummary(cmap)
>
> cmap := cmap(50:, :)
> printVarSummary(cmap)
>
> On the second question, there's a small set of conditions as to whether
> the palette is spanned vs. whether consecutive values are used; check out
> cnSpanFillPalette:
>
> http://ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnSpanFillPalette
>
> Hope that helps...
> Rick
>
>
> On Sun, Oct 22, 2017 at 6:40 AM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> I'd like to start using the NCV_rainbow2 color pallette from element 50.
>>
>> I assume there is an easy way to do this, but it doesn't seem to be
>> written down anywhere.
>>
>> Also, I am wondering how NCL knows to span the entire original or
>> modified color bar when apportioning the colors.
>>
>> Thanks,
>>
>> Barry
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171022/bc21b5ec/attachment.html>


More information about the ncl-talk mailing list