...
The following example program can be used for testing only. Don't ask for a sophisticated science background. The example uses FORTRAN-90 notation.
To compile the code, the netcdf data- and function types must be included by a use statement. The compiler needs to know, where the fortran-modules are located. Instead of digging into installation details, we use the result of the script nf-config, which is part of the netcdf-suite. To make it available, load a netcdf module:
...