IDL_PATH subdirectories [message #47229] |
Sun, 29 January 2006 14:31 |
Jess
Messages: 11 Registered: June 2005
|
Junior Member |
|
|
Hi,
In unix system install of IDL (v6.2), the IDL_PATH is set in idl_setup
as:
setenv IDL_PATH
"<IDL_DEFAULT>":$RSI_DIR/astro_lib/pro:$RSI_DIR/simul_package/v4.3.2_
pros
where I presume IDL_DEFAULT is $IDL_DIR/bin/idl/lib.
However on running idl all the subdirectories of lib (eg. itools,
utiliities) are not sourced. Eg. if I try to run xloadct I get:
IDL> xloadct
% Attempt to call undefined procedure/function: 'XLOADCT'.
% Execution halted at: $MAIN$
I understand that by prefixing the path with a '+', IDL will also
source the subdirs. However when I edit my path using IDL_STARTUP and
adding the following to my ~/.idlrc
idl_full = ':+/pkg/merlin/idl/idl_6.2/lib'
!path=!path + idl_full
restarting IDL, shows an expanded path when I run
IDL> print,expand_path(!path)
/pkg/merlin/idl/idl/lib:/pkg/merlin/idl/astro_lib/pro:/pkg/m erlin/idl/simul_package/v4.3.2_pros:/pkg/merlin/idl/idl_6.2/ lib/hook:/pkg/merlin/idl/idl_6.2/lib/obsolete:/pkg/merlin/id l/idl_6.2/lib/utilities:/pkg/merlin/idl/idl_6.2/lib/itools/c omponents:/pkg/merlin/idl/idl_6.2/lib/itools/framework:/pkg/ merlin/idl/idl_6.2/lib/itools/ui_widgets:/pkg/merlin/idl/idl _6.2/lib/itools:/pkg/merlin/idl/idl_6.2/lib/wavelet/source:/ pkg/merlin/idl/idl_6.2/lib
But scripts in the !path sub dirs still fail to load:
IDL> xloadct
% Attempt to call undefined procedure/function: 'XLOADCT'.
% Execution halted at: $MAIN$
The only way I have been able to get these sub dir scripts to load is
if I list each dir explicitly in my ammended !path, ie. not depending
on '+'. Can someone tell me what I'm doing wrong, and I will make sure
our system IDL_PATH is fixed so that all these lib sub dirs are
sourced?
Thanks,
Jess
ps. Sorry if this has already been answered.
|
|
|