Anybody know the filename variable? [message #8552] |
Fri, 04 April 1997 00:00  |
Marc Lessard
Messages: 1 Registered: April 1997
|
Junior Member |
|
|
Hi,
I would like to be able to include the *.pro filename on some plots that
I'm making. When I type 'idl>.run *.pro', it seems that this name must
be stored as a string in some variable. Does anybody know where I can
get to it?
Or, if anybody is going about this a different way, I'd sure like to
hear about it.
Thanks a lot for any help.
Marc
|
|
|
Re: Anybody know the filename variable? [message #8689 is a reply to message #8552] |
Mon, 07 April 1997 00:00  |
R. Bauer
Messages: 137 Registered: November 1996
|
Senior Member |
|
|
Marc Lessard wrote:
>
> Hi,
>
> I would like to be able to include the *.pro filename on some plots that
> I'm making. When I type 'idl>.run *.pro', it seems that this name must
> be stored as a string in some variable. Does anybody know where I can
> get to it?
>
> Or, if anybody is going about this a different way, I'd sure like to
> hear about it.
>
> Thanks a lot for any help.
> Marc
Hi
I am using whoami and whocalledme from Ray Sterners library!
whoami:
Returns to the calling routine its directory and name.
whoami, dir, file
dir = Source directory of calling routine. out
file = name of calling routine. out
Notes: It can be useful for a routine to know
what directory it is located in. This allows
it to reference auxiliary files in the same
directory without needed any special environmental
variables defined. The file name returned here is
less important since it could always be hardwired
into the calling routine itself, but this technique
allows this to be avoided for more reusable code.
whocalledme:
Returns to calling routine its parent's directory and name.
whocalledme, dir, file
dir = Source directory of parent routine. out
file = name of parent routine. out
Keywords:
LINE=n Line number just after parent's last call.
Notes: It can be useful for a routine to know
what routine called it.
See also: whoami.
--
R.Bauer
Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@kfa-juelich.de
|
|
|