Re: color table in unix [message #34438 is a reply to message #34375] |
Mon, 17 March 2003 08:54  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Kay wrote:
> I know how to use the file keyword, but I wanted to find out if there
> is anyway to change the default for colors1.tbl in my startup file so
> I don't have to type it everytime I want to load a color table. Is
> there such a command?
>
Dear Kay,
I don't know but did you have thougth about modifying the source of loadct
and then to put your version in front of the search path?
Or to name it my_loadct and to use this instead of the original?
I like more the renaming of routines if I change something.
regards
Reimar
> Thanks,
>
> Kay
>
> Reimar Bauer <R.Bauer@fz-juelich.de> wrote in message
> news:<b4lhqp$8icp$1@zam602.zam.kfa-juelich.de>...
>> Kay wrote:
>>
>>> I am a neophyte with IDL running in UNIX, so I apologize in advance if
>>> this is a really stupid question. When I ran IDL on a Mac, I had
>>> color table file that I replaced the default version with. On the
>>> Mac, I had permissions to change whatever I wanted in the
>>> resource:colors directory. What I would like to do is have that same
>>> color table file as my default in Unix, however I can't write to the
>>> ...rsi/IDL/resource/colors directory. Is there something I can put in
>>> my IDL startup file that will change the default color table file from
>>> the ...rsi/IDL/resouce/colors/colors1.tbl to the file I want to use?
>>>
>>> Thanks,
>>>
>>> Kay
>>
>> Dear Kay,
>>
>> ok on the mac you may have user privelegs which allows you editing or
>> changing a system file.
>> On unix those files are protected. Only root can change these files.
>> An unix system is a true multi user system. The same time many users can
>> be logged in. It is not a good idea to change a colortable in this way
>> you have done it before.
>>
>> If you have a look to the documentation or online help you will find a
>> keyword file which could be added to LOADCT,
>>
>> The LOADCT procedure loads one of 41 predefined IDL color tables. These
>> color tables are defined in the file colors1.tbl, located in the
>> \resource\colors subdirectory of the main IDL directory, unless the FILE
>> keyword is specified. The selected colortable is loaded into the COLORS
>> common block as both the current and original colortable. If the
>> current device has fewer than 256 colors, the color table data is
>> interpolated to cover the number of colors in the device.
>>
>>
>> FILE
>> Set this keyword to the name of a colortable file to be used instead of
>> the file colors1.tbl. SeeMODIFYCT to create and modify colortable files.
>>
>>
>> regards
>>
>> Reimar
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|