
NCL > Application examples > Basic examples
App example 1
App objects and resource files
This example demonstrates how App objects and resource files work together to define the values for object resources.
Discussion
This module demonstrates how to create an App object and how entries in a resource file take precedence over one another. The resource file used in this example is called ap01.res.For a detailed discussion of how this example works, please see the source code.
Creating the plot using HLU C library calls
The HLU C program that generates this plot is called ap01c.c.
Creating the plot using HLU FORTRAN library calls
The HLU FORTRAN program that generates this plot is called ap01f.f.
Creating the plot using NCL
The NCL script that generates this plot is called ap01n.ncl.
The data
No external data is used in this plot.
How to run this example
The example is installed in the following locations:
- $NCARG_ROOT/lib/ncarg/hluex/app/ap01c.c
- $NCARG_ROOT/lib/ncarg/hluex/app/ap01f.f
- $NCARG_ROOT/lib/ncarg/nclex/app/ap01n.ncl