Re: How to add modified color tables to IDL 7.1 [message #79641 is a reply to message #79640] |
Thu, 15 March 2012 15:18   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 3/15/12 3:52 PM, David L�pez wrote:
> On Mar 15, 5:15 pm, nata<bernat.puigdomen...@gmail.com> wrote:
>> Modify your palette using XPALETTE. Then, you can retrieve the RGB values with TVLCT, r, g, b, /GET and create a SAV file with these values SAVE, FILENAME='myrainbowpalette.sav', r, g, b
>>
>> After that, if you want to use these same colors again, you can restore the palette RESTORE, 'myrainbowpalette.sav' and set the colors using TVLCT, r, g, b
>>
>> Another option is to modify the palette using MODIFYCT. You can create your own color-palette-table or overwrite the existing one (even if this is not a good idea). If you create your table, you will have to specify the file LOADCT, FILE=file, or MODIFYCT, FILE=file
>>
>> Dale !
>> nata
>
> Thanks a Lot Nata...
> but now I have this problem
>
> % Compiled module: MODIFYCT.
> % Variable is undefined: ITAB.
> % Error occurred at: MODIFYCT 83 /usr/local/itt/idl71/lib/
> modifyct.pro
> % $MAIN$
> % Execution halted at: $MAIN$
>
> Thanks a lot
Could you show the command that caused this error?
I have several other color tables files that I access with the FILE
keyword of [X]LOADCT and find this a quite nice way to store color tables.
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL, A Guide to Learning IDL: http://modernidl.idldev.com
Research Mathematician
Tech-X Corporation
|
|
|