|
Re: The astro package and PC IDL [message #17415 is a reply to message #17360] |
Mon, 11 October 1999 00:00  |
dirk
Messages: 15 Registered: March 1998
|
Junior Member |
|
|
In article <37FB9611.5104EAD6@aa.usno.navy.mil>,
Susan G. Stewart <sgs@aa.usno.navy.mil> wrote:
>
> Has anyone had any luck modifying the
> astro package of routines for the PC version
> of IDL ?
>
What do you mean? They're all written in IDL, and since you download the
.pro files, you can edit them in any standard text editor (emacs, pico,
vi).
I'm going to take a wild stab and guess that you've tried this and
modified a program or two, but when you compile it, it still acts like the
old version? If that's the case, then what's likely happening is that you
need to adjust your idl !path variable.
print,!path ;will tell you what directories idl will look in (in order)
;when you tell it to .run foo.pro
;(implicit in this list is that IDL will look in the current
;directory first, and then start down the directories listed
;in !path). If your astro lib directory is in the path
;before your new file, it will compile the old program in the
;astro lib. You can add new directories like this:
!path = '/usr/users/dirk/idl/iuerdaf:' + !path
!path = '/usr/users/dirk/idl/fits:' + !path
!path = '/usr/users/dirk/idl/fuse:' + !path ;reverse priority order
!path = '/usr/users/dirk/idl/dev:' + !path
This adds the new path string to the old path string. You shouls add
directories in the reverse order you want them to be searched. In other
words, IDL will look in my /idl/dev directory first, and then go up the
list hunting for the program foo.pro I'm sure the smarter folks around
here have more elegant and fancy ways of doing this, but this works for
me.
Hope that helps!
- Dirk
|
|
|