Re: Getting indices and rgb triplets for contour fill colours

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 06 2013 - 09:14:01 MST

This function is NCL script, which I will attach here along with the other similar functions, get_color_rgba, span_color_indexes, span_color_rgba.
You'll need to add:

load "./new_color_fcns.ncl"

at the top of your script after the other "load" commands.

--Mary

On Nov 5, 2013, at 11:04 AM, Rick Brownrigg <brownrig@ucar.edu> wrote:

> Whoops…got ahead of my self -- that function get_color_index() is new with the up coming release :-(
>
> GetFillColor() might do the trick -- its not clear whether it uses the same algorithm as the contour auto-select.
>
> http://www.ncl.ucar.edu/Document/Functions/Contributed/GetFillColor.shtml
>
> Rick
>
> On Nov 5, 2013, at 10:45 AM, Andy Barrett <apbarret@nsidc.org> wrote:
>
>> Hi
>>
>> how can I find the color map indices and the equivalent RGB triplets for
>> a contour plot?
>>
>> I am creating a contour plot and allowing the colours to be assigned
>> automatically but I want to know what the color indices are once they
>> have been assigned.
>>
>> Any thoughts.
>>
>> Andy Barrett
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Nov 6 09:14:09 2013

This archive was generated by hypermail 2.1.8 : Mon Nov 11 2013 - 09:45:33 MST