Next: Expressions, Previous: ncap2 netCDF Arithmetic Processor, Up: ncap2 netCDF Arithmetic Processor
Mastering ncap2 is relatively simple. Each valid statement statement consists of standard forward algebraic expression. The fl.nco, if present, is simply a list of such statements, whitespace, and comments. The syntax of statements is most like the computer language C. The following characteristics of C are preserved:
[] characters;
/* */ characters.
Single line comments are preceded by // characters.
#include script.
Note that the #include command is not followed by a semi-colon
because it is a pre-processor directive, not an assignment statement.
The filename script is interpreted relative to the run directory.
@ is used to delineate an attribute name from a
variable name.