|
Re: What do *you* have in your IDL_STARTUP file? [message #45047 is a reply to message #45046] |
Tue, 02 August 2005 11:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
cgguido writes:
> Wow! I am going to have to study these closely. Especially because I
> run IDL on RedHat linux and MAc OSX but not Windows.
I wouldn't study them *too* closely. All the ones I looked
at did some kind of DEVICE, DECOMPOSED=0, which seems to
me to be a waste of a perfectly good 24-bit graphics card. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|
Re: What do *you* have in your IDL_STARTUP file? [message #45056 is a reply to message #45049] |
Tue, 02 August 2005 10:18  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
cgguido wrote:
My is similiar to this one:
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl .all
this is the setup for
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
cheers Reimar
> Thanks Jim. Unfortunately I bought the student's edition only 2 months
> ago. It is based on idl 6.0. Furthermore, I use RedHat Linux and Mac
> OSX only.
>
> I tried someting like:
>
> spawn, 'echo $PWD', p
> !prompt=p+string(10B)+'IDL>'
>
> Unfortunately when I use arrow up to go through my command history, I
> get repeated lines with my pwd over and over, once for every arrow-up.
>
> G
>
> On 8/1/05, Jim Pendleton wrote:
>> In IDL 6.2, you might consider putting most (if not all) of your
>> settings like these into your user preferences instead of a
>> startup script, for example (on Windows) these are
>> IDL_GR_WIN_RETAIN, IDL_RBUF_SIZE and IDL_PATH.
>>
>> Jim P.
>>
|
|
|
Re: What do *you* have in your IDL_STARTUP file? [message #45057 is a reply to message #45056] |
Tue, 02 August 2005 10:16  |
mankoff
Messages: 131 Registered: March 2004
|
Senior Member |
|
|
I test to see if I am logged in with X windows enabled or not. If not,
I don't set up the device because that produces errors:
;;; DISPLAY
env = GETENV( "IDL_STARTUP" )
IF env eq 'IDL_no_X' THEN x=0 ELSE x=1
IF x THEN device, true = 24
IF x THEN device, decomposed = 0
IF x THEN device, retain = 2
IF x THEN snoect, /gray
delvar, env, x
;;; SYSTEM VARIABLES
!warn.obs_sysvars = 1 ; warn if using obselete system vars
!warn.obs_routines = 1 ; warn if obselete routine (COMPILE_OPT
obselete)
;;;!x.ticklen = ( !y.ticklen = ( !p.ticklen = -0.02 ) )
;;;!warn.parens = 1 ; warn if using parentheses (use []!)
;;;!EXCEPT = 2 ; turn on every once in a while (Ha!)
!edit_input = 1000
.com /home/mankoff/SNOE/env/snoesysvar
DEFSYSV, '!SNOE', snoesysvar(), 1 ; 1 = read_only
;;; PRE-COMPILE hack procedures
.com /Users/mankoff/local/IDL_lib/snoe_sw/map_continents.pro
.com /Users/mankoff/local/IDL_lib/snoe_sw/write_gif
; these let me write GIF images even without the license (write to PNG
and then spawn the 'nix convert utility), and my modified
map_continents that allows magnetic and paleo continent outlines via
keywords.
|
|
|
Re: What do *you* have in your IDL_STARTUP file? [message #45067 is a reply to message #45057] |
Mon, 01 August 2005 21:07  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
Thanks Jim. Unfortunately I bought the student's edition only 2 months
ago. It is based on idl 6.0. Furthermore, I use RedHat Linux and Mac
OSX only.
I tried someting like:
spawn, 'echo $PWD', p
!prompt=p+string(10B)+'IDL>'
Unfortunately when I use arrow up to go through my command history, I
get repeated lines with my pwd over and over, once for every arrow-up.
G
On 8/1/05, Jim Pendleton wrote:
> In IDL 6.2, you might consider putting most (if not all) of your
> settings like these into your user preferences instead of a
> startup script, for example (on Windows) these are
> IDL_GR_WIN_RETAIN, IDL_RBUF_SIZE and IDL_PATH.
>
> Jim P.
>
|
|
|