Re: color table in unix [message #34389 is a reply to message #34375] |
Tue, 11 March 2003 12:43   |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
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
|
|
|