Back Home Up

Subchapters:

Init file

There is an init file, which is read at each start of IDL, and which location is in the IDL_STARTUP environment variable (defined in the .login, or .tcshrc file)

Here is an example of an init file:

 

defsysv,'!edit_input',100
;
;
defsysv,'!path',!path+':'+expand_path('+~/IDL')
;
; Definition du symbole Angstrom
;
angstrom = STRING(197B)
;
; Definition de true et false
;
defsysv,'!true',1b
defsysv,'!false',0b
;
; pour qu'idl s'occupe du backing store
;
DEVICE, RETAIN=2
;
device,decomposed=0,true_color=24,BYPASS_TRANSLATION=1
;
; Keys definitions
setup_keys
define_key, 'f1', 'print,'
define_key, 'f2', 'plot,'
define_key, 'f4', 'retall',/term

define_key, 'f5', 'help',/term
define_key, 'f6', 'help,/str,'
define_key, 'f7', 'help,/mem',/term

define_key, 'f9', '.r main',/term
;
; Define some colors
;
my_colors
;
;
; Define some constants
;
phyat_cst
;
;
print," VOICI LA LISTE DES PROGRAMMES UTILES..."
$ls *.pro *.sav *.xdr
print," Don't forget @mon_journal"

 

 

IDL courses C. Morisset © 2004 IA/UNAM V 2.2

Back Home Up