comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: What do *you* have in your IDL_STARTUP file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: What do *you* have in your IDL_STARTUP file? [message #45057 is a reply to message #45056] Tue, 02 August 2005 10:16 Go to previous messageGo to previous message
mankoff is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: medical image registration and ITK
Next Topic: Re: CALL_EXTERNAL and C++ code

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:47:49 PDT 2025

Total time taken to generate the page: 0.47895 seconds