comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: New color palette
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: New color palette [message #79602] Wed, 21 March 2012 11:02 Go to next message
KH is currently offline  KH
Messages: 9
Registered: August 2011
Junior Member
On Mar 20, 9:12 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> If you want you can visithttp://soliton.vm.bytemark.co.uk/pub/cpt-city/index.htm l
> There are tones of palettes and we have a routine to read them in IDL
>
> If you want the code let me know
> nata

Thank you nata for the link. I couldn't find the exact palette that I
want, but there are several others that I would like to consider
using. If you would be willing to share your code to read the
palettes I would really appreciate it.
Thanks,
Kim
Re: New color palette [message #79603 is a reply to message #79602] Wed, 21 March 2012 11:03 Go to previous messageGo to next message
KH is currently offline  KH
Messages: 9
Registered: August 2011
Junior Member
On Mar 20, 4:33 pm, David Fanning <n...@idlcoyote.com> wrote:
> KH writes:
>> I am looking for a cyan to blue to white to red to yellow color
>> palette similar to the one here:
>> http://www-meom.hmg.inpg.fr/Web/pages-perso/brankart/Ferret_ scripts/w....
>
>> Specifically I am looking for a 256 version of the white_centered.spk
>> palette from Ferret.  It is my understanding that Ferret interpolates
>> the colors from the following:
>> 0     0  100  100
>> 20   20   20  100
>> 35  100  100  100
>> 65  100  100  100
>> 80  100   20   20
>> 100 100  100    0
>> I believe the first column is the percentage value, but I am just not
>> sure how to use on 6 RGB values to get a full color palette I can use
>> in IDL.
>
>> Any assistance would be greatly appreciated.
>
> You would do it like this:
>
> http://www.idlcoyote.com/color_tips/create_colortable.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")- Hide quoted text -
>
> - Show quoted text -

Thank you David, this is very useful.
Kim
Re: New color palette [message #79606 is a reply to message #79602] Tue, 20 March 2012 18:12 Go to previous messageGo to next message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
If you want you can visit http://soliton.vm.bytemark.co.uk/pub/cpt-city/index.html
There are tones of palettes and we have a routine to read them in IDL

If you want the code let me know
nata
Re: New color palette [message #79608 is a reply to message #79606] Tue, 20 March 2012 13:33 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
KH writes:

> I am looking for a cyan to blue to white to red to yellow color
> palette similar to the one here:
> http://www-meom.hmg.inpg.fr/Web/pages-perso/brankart/Ferret_ scripts/white_centered.gif.
>
> Specifically I am looking for a 256 version of the white_centered.spk
> palette from Ferret. It is my understanding that Ferret interpolates
> the colors from the following:
> 0 0 100 100
> 20 20 20 100
> 35 100 100 100
> 65 100 100 100
> 80 100 20 20
> 100 100 100 0
> I believe the first column is the percentage value, but I am just not
> sure how to use on 6 RGB values to get a full color palette I can use
> in IDL.
>
> Any assistance would be greatly appreciated.

You would do it like this:

http://www.idlcoyote.com/color_tips/create_colortable.html

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: New color palette [message #79692 is a reply to message #79602] Thu, 22 March 2012 10:13 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/21/12 12:02 PM, KH wrote:
> On Mar 20, 9:12 pm, nata<bernat.puigdomen...@gmail.com> wrote:
>> If you want you can visithttp://soliton.vm.bytemark.co.uk/pub/cpt-city/index.htm l
>> There are tones of palettes and we have a routine to read them in IDL
>>
>> If you want the code let me know
>> nata
>
> Thank you nata for the link. I couldn't find the exact palette that I
> want, but there are several others that I would like to consider
> using. If you would be willing to share your code to read the
> palettes I would really appreciate it.
> Thanks,
> Kim

Here is a list of the color tables in the cpt-city download that might
make finding your table easier (though it's still quite a pain to search
through the many, many tables available):

http://docs.idldev.com/vis/color/cptcity_catalog.html

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Replicate array over columns - using transpose?
Next Topic: Bug(s) in debugger? Breakpoint stepping for nested HASH's.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:52:33 PDT 2025

Total time taken to generate the page: 0.00566 seconds