Changes between Version 3 and Version 4 of FAQ_WrapperScriptBasics


Ignore:
Timestamp:
Jul 20, 2006 8:33:31 PM (15 years ago)
Author:
dkearney
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQ_WrapperScriptBasics

    v3 v4  
    2525== Basic Format of a Wrapper Script ==
    2626
     27All wrapper scripts follow the same basic format:
     28
     29  1. open a rappture library object by sending it an xml file
     30  2. "get" inputs that the user specified, from the rappture object
     31  3. create an input file for your science code
     32  4. call your science code
     33  5. parse the output files from the science code
     34  6. "put" the interesting output back into the rappture library object
     35  7. call the result function to tell rappture graphical user interface that the wrapper script is complete.
     36
     37Generally wrapper scripts are written in a scripting language such as Tcl, Python, or Perl. This is because with scripting languages usually make it easy to do string manipulation, external application calls, and creation of files. While these activities can be done in languages like C/C++ or Fortran, its just easier and more convenient to use a scripting language. If you don't know a scripting language, then this is an excellent time to learn one. Tcl, Python and Perl are all pretty easy to learn and understand, especially if you already know another programming language.
     38
    2739== Hands On Example ==
    2840