Re: Modules directory howto find or link IDL 2 it [message #23838] |
Fri, 23 February 2001 11:08 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"Sean Heukels" <sean77=cuthere=@dds.nl> writes:
> OK
>
> Checked up
> IDL_PATH is set by our sysadmin to <DEFAULT_DIR>
> When this parameter is passed, a whole bunch of dirs is
> in !path when I start up.
> I tried passing setenv IDL_PATH="IDL_PATH /mynewdirectory"
> But this didn't work either.
Try this:
setenv IDL_PATH /mynewdirectory:$IDL_PATH
or
setenv IDL_PATH /mynewdirectory:<DEFAULT>
both should be equivalent.
Craig
>
>
> Sean
>
> "Sean Heukels" <sean77=cuthere=@dds.nl> schreef in bericht
> news:976057$g68$1@newshost.accu.uu.nl...
>> I've written several modules, ones that work,
>> and have proven themselves through time,
>> how do I link them (from a subdir) in IDL???
>>
>> We have IDL running on Unix, multi user, all with our own homes.
>> I want my version of IDL or in my environment to look for a PRO file
>> in its current directory, then MYmodule directory and then the IDL main
>> module directory.
>> How can I accomplish this?
>> Must I set a environment variable??
>>
>> Thanks in advance
>>
>> Sean
>>
>>
>
>
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: Modules directory howto find or link IDL 2 it [message #23842 is a reply to message #23838] |
Fri, 23 February 2001 09:08  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Craig Markwardt (craigmnet@cow.physics.wisc.edu) writes:
> Welcome back! The group is somewhat lackluster without your presence.
> You must be getting tennis elbow. :-)
I wish. I've been laying hardwood floors. Let's just
say any plans I had to leave IDL programming and enter
the woodworking trades has been put on a permanent hold. :-(
Cheers,
David
P.S. I'm sore in a couple of places I didn't even know
it was *possible* to be sore in.
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
|
Re: Modules directory howto find or link IDL 2 it [message #23846 is a reply to message #23845] |
Fri, 23 February 2001 08:31  |
Sean Heukels
Messages: 25 Registered: November 1999
|
Junior Member |
|
|
OK
Checked up
IDL_PATH is set by our sysadmin to <DEFAULT_DIR>
When this parameter is passed, a whole bunch of dirs is
in !path when I start up.
I tried passing setenv IDL_PATH="IDL_PATH /mynewdirectory"
But this didn't work either.
Sean
"Sean Heukels" <sean77=cuthere=@dds.nl> schreef in bericht
news:976057$g68$1@newshost.accu.uu.nl...
> I've written several modules, ones that work,
> and have proven themselves through time,
> how do I link them (from a subdir) in IDL???
>
> We have IDL running on Unix, multi user, all with our own homes.
> I want my version of IDL or in my environment to look for a PRO file
> in its current directory, then MYmodule directory and then the IDL main
> module directory.
> How can I accomplish this?
> Must I set a environment variable??
>
> Thanks in advance
>
> Sean
>
>
|
|
|
Re: Modules directory howto find or link IDL 2 it [message #23848 is a reply to message #23845] |
Fri, 23 February 2001 08:29  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"Sean Heukels" <sean77=cuthere=@dds.nl> writes:
> I've written several modules, ones that work,
> and have proven themselves through time,
> how do I link them (from a subdir) in IDL???
>
> We have IDL running on Unix, multi user, all with our own homes.
> I want my version of IDL or in my environment to look for a PRO file
> in its current directory, then MYmodule directory and then the IDL main
> module directory.
> How can I accomplish this?
> Must I set a environment variable??
Quick answers. I assume you are running Unix, since that's what it
sounds like from your post:
* if you have an idl_setup script that runs in your login files, then
right after that, put the following statement:
setenv IDL_PATH $HOME/mymodule:$IDL_PATH
or the equivalent in your shell language
* if you are using a default "idl" script, then you won't be able to
set the path variable in your login ahead of time. You can still
use a start-up script. In your login file put something like this:
setenv IDL_STARTUP ~/.idl_startup.pro
and in .idl_startup.pro put this:
!PATH = '~/mymodule:' + !PATH
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: Modules directory howto find or link IDL 2 it [message #23849 is a reply to message #23848] |
Fri, 23 February 2001 07:52  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Sean Heukels (sean77=cuthere=@dds.nl) writes:
> I've written several modules, ones that work,
> and have proven themselves through time,
> how do I link them (from a subdir) in IDL???
I'd get Ronn Kling's wonderful new book _Calling C
from IDL_. Everything you ever wanted to know in there. :-)
You can order directly from Ronn:
http://www.rlkling.com/
> We have IDL running on Unix, multi user, all with our own homes.
> I want my version of IDL or in my environment to look for a PRO file
> in its current directory, then MYmodule directory and then the IDL main
> module directory.
> How can I accomplish this?
Add the directories to your !PATH system variable
in exactly that order.
> Must I set a environment variable??
You don't have to, but many people do. The !Path
system variable obtains its information from the
IDL_PATH environment variable.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|