Next: , Previous: Loops, Up: ncap2 netCDF Arithmetic Processor


4.1.15 Include files

The synatax of an include file is:

     #include "script.nco"

The script filename is searched relative to the run directory. It is possible to nest include files to an arbitrary depth. A handy use of inlcude files is to store often used constants. Use RAM variables if you do not want these constants written to Output.

     // script.nco
     // Sample file that could be #include'd in ncap2 script
     *pi=3.1415926535; // Not written to Output
     *h=6.62607095e-34; // Not written to Output
     e=2.71828; // Written to Output