True colors and IDL [message #6008] |
Fri, 12 April 1996 00:00  |
Jeffrey Newmark
Messages: 8 Registered: April 1996
|
Junior Member |
|
|
Hi,
I am running IDL 4.0.1 on a DEC AlphaStation (Digital UNIX) with
a 24 bit monitor. I routinely display a large number of 1024x1024
images from FITS files. These images are displayed using 1 of 4
color tables we have added to the standard IDL set. I am presently
setting device,pseudo_color=8 since I haven't found a QUICK
way to create the TRUECOLOR images on the fly.
Anyhow, the trouble I'm having is that the proper color table is
not being set unless I also bring up XLOADCT. After the color
table is loaded once I can get rid of XLOADCT and it will still
use the proper color table for future images in the same IDL session.
Therefore, once I get the 4 color tables loaded I can get rid of
XLOADCT but this is a pain not to mention silly.
Does anyone know if this is a feature, bug, or pilot error????
Is there something I'm not setting in my .Xdefaults??
lost in color.....thanks in advance.
|
|
|
|
Re: True colors and IDL [message #6144 is a reply to message #6008] |
Wed, 17 April 1996 00:00  |
Georg Kettmann
Messages: 3 Registered: October 1995
|
Junior Member |
|
|
williams wrote:
>
> Jeffrey Newmark wrote:
>>
>> Hi,
>>
>> I am running IDL 4.0.1 on a DEC AlphaStation (Digital UNIX) with
>> a 24 bit monitor. I routinely display a large number of 1024x1024
>> images from FITS files. These images are displayed using 1 of 4
>> color tables we have added to the standard IDL set. I am presently
>> setting device,pseudo_color=8 since I haven't found a QUICK
>> way to create the TRUECOLOR images on the fly.
>>
>> Anyhow, the trouble I'm having is that the proper color table is
>> not being set unless I also bring up XLOADCT. After the color
>> table is loaded once I can get rid of XLOADCT and it will still
>> use the proper color table for future images in the same IDL session.
>> Therefore, once I get the 4 color tables loaded I can get rid of
>> XLOADCT but this is a pain not to mention silly.
>>
>> Does anyone know if this is a feature, bug, or pilot error????
>> Is there something I'm not setting in my .Xdefaults??
>>
>> lost in color.....thanks in advance.
> Jeff,
>
> As I have just found out, the order of the statments in your .Xdefaults
> file matters. For instance, idl.colors should come before idl.visual.
>
> Hope this helps
I have seen the same problem on an OpenVMS machin and fixed it by running this
little procedure from the startup procedure (I guess I extracted it from
XLOADCT):
PRO init_ct
; Initialize color table. With the E3 graphics, color tables are not realized
; properly with just calling LOADCT and plotting. This little hack fixes the
; problem (although I really don't know why!)
;
; G. Kettmann, MPAe, 24-Aug-1995
base = WIDGET_BASE()
show = WIDGET_DRAW(base)
WIDGET_CONTROL, base, /REALIZE
widget_control, base, /destroy
END
I'm not familiar with Unix. Is there an equivalent to the .Xdefaults file
which should be edited for a proper solution of the problem?
Georg.
--
+----------------------------------------------------------- -----------------+
| Georg Kettmann Phone: [+49] 55 56 - 979 338 |
| Max-Planck-Institut fuer Aeronomie FAX: - 240 |
| Postfach 20 Internet: kettmann@linrap.mpae.gwdg.de |
| D-37189 Katlenburg-Lindau, Germany SPAN: NSP::29050::KETTMANN |
+----------------------------------------------------------- -----------------+
|
|
|
Re: True colors and IDL [message #6147 is a reply to message #6008] |
Tue, 16 April 1996 00:00  |
Phil Williams
Messages: 78 Registered: April 1996
|
Member |
|
|
Jeffrey Newmark wrote:
>
> Hi,
>
> I am running IDL 4.0.1 on a DEC AlphaStation (Digital UNIX) with
> a 24 bit monitor. I routinely display a large number of 1024x1024
> images from FITS files. These images are displayed using 1 of 4
> color tables we have added to the standard IDL set. I am presently
> setting device,pseudo_color=8 since I haven't found a QUICK
> way to create the TRUECOLOR images on the fly.
>
> Anyhow, the trouble I'm having is that the proper color table is
> not being set unless I also bring up XLOADCT. After the color
> table is loaded once I can get rid of XLOADCT and it will still
> use the proper color table for future images in the same IDL session.
> Therefore, once I get the 4 color tables loaded I can get rid of
> XLOADCT but this is a pain not to mention silly.
>
> Does anyone know if this is a feature, bug, or pilot error????
> Is there something I'm not setting in my .Xdefaults??
>
> lost in color.....thanks in advance.
Jeff,
As I have just found out, the order of the statments in your .Xdefaults
file matters. For instance, idl.colors should come before idl.visual.
Hope this helps
--
/*********************************************************** ********/
Phil Williams, Ph.D.
Research Instructor
Children's Hospital Medical Center "One man gathers what
Imaging Research Center another man spills..."
3333 Burnet Ave. -The Grateful Dead
Cincinnati, OH 45229
email: williams@irc.chmcc.org
URL: http://www.irc.chmcc.org/~williams/
/*********************************************************** ********/
|
|
|