On Thu, May 24, 2001 at 11:42 -0400, David Huenemoerder wrote: > I do it like this: > > isis> ilib=getenv("HOME") + "/libisis"; > isis> ()=evalfile(ilib + "/plot_order_summary.sl"); Managing a library of scripts may be simplified a bit by using the add_to_isis_load_path() and require() functions. Unfortunately, the manual is a bit out of date on these... For example, if you put your scripts in "/home/bob/isislib", you could add this line to your .isisrc: add_to_isis_load_path ("/home/bob/isislib"); to tell ISIS to search that directory to find files named by the 'require' function. Now, suppose you're writing a script which needs utility functions defined in "util.sl" which is kept in /home/bob/isislib. To load those utility functions, add the line require ("util"); to the top of your script. When you run the script, ISIS will search for the file "util.sl" along the colon-delimited list of directories specified in the ISIS_LOAD_PATH environment variable (which can be specified in your Unix shell environment or by the add_to_isis_load_path() function as above). This way, you don't have to hard-code file-search paths into all of your scripts. If you later decide to move your scripts to a different directory, you need only change ISIS_LOAD_PATH and everything else should work. > There WILL be side affects on an isis session - I don't know how to > avoid this (e.g., connect_points and points styles, xrange, yrange). > (Help? unless there is a global plot structure to save and replace? > like !p in IDL?) I assume you're referring only to changes in plot format? Since those are device-specific, such format changes should disappear when the associated plot device is closed. When you open a new plot device, it should get the standard defaults for all its format parameters. John ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Thu May 24 2001 - 17:28:45 EDT
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:43 EDT