comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: alias in idl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: alias in idl [message #44144 is a reply to message #44053] Tue, 17 May 2005 09:38 Go to previous message
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
> Koh Leong Tah wrote:
>
> hi all,
> i have a directory which I happen to restore structures on pretty often
> and i was wondering if there's a way to have a shortcut name to that
> directory that i can setup, maybe in .idlinit?
> thanks,
> kl

All the other suggestions are good. I'd just mention that I find it
quite helpful to have a "configuration" object, with methods such
as "get_datadir", "cd_datadir", "get_workingdir", "cd_workingdir",
"get_winddatadir", "get_tempdatadir", etc.
so that the code is always the same, and if you change directory structure
(such as switching between windows and linux) then the only place you
need make changes is in the configuration file.

In fact, I do a "computer name" check, and return the appropriate path.
Of course, in IDL, it is just as easy to make a procedure (and perhaps have
keywords instead of methods.

Cheers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: LabView script node and NetCDF
Next Topic: Re: Looking for IDL code documentation standards

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Dec 02 22:05:50 PST 2025

Total time taken to generate the page: 0.00257 seconds