Writing Scrips

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Writing Scrips

Script used in Programmable Post Processor uses Python programming language. That's why to execute it correctly, the script should have an appropriate code structure and format. As scripts written using Python programming language users can use its language features like loops, conditions, functions, etc. Also, all language restrictions applied to post scripts.

All post scripts should be placed in Post/[module_name]/PY folder, along with default.spm files. (The default.spm is only used for general post initialization).

The beginning of the file must contain the following line.  It imports data types for event handling:

from post_ext import *

If you want to use the option Extension from Post-Processor then the variable GENERAL_OutputFileExt should be specified as follows:

GENERAL_OutputFileExt = ".nc"