Re: automatically load nclscripts

From: Rick Grubin (grubin AT XXXXXX)
Date: Tue Jun 08 2004 - 16:59:59 MDT


Hi Jim

> Is there a way to automatically load scripts like "contributed.ncl"?

Indeed; you use the "load" directive somewhere in your script. Examples:

    load "/path/to/contributed.ncl"

    load "$NCARG_ROOT/lib/etc/myFunctions.ncl"

Full paths and environment variables acceptable when referencing scripts
external to a script you're running, or in interactive mode.

> Does this create a lot of overhead if you're running in command line mode?

Are you thinking in terms of memory usage as a penalty, or something else?
Loading a script in interactive mode is effectively no different than
loading it from within another script.

Here's a link with some further information:
    http://ngwww.ucar.edu/ngdoc/ng/ug/ncl/nclbatch.html

-Rick.

--
Rick Grubin                     Visualization + Enabling Technologies
Scientific Computing Division   National Center for Atmospheric Research   
grubin@ucar.edu                 303.497.1832

_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Thu Jun 10 2004 - 08:32:47 MDT