
NCL > Application examples > Basic examples
ContourPlot example 11
Mixing low level and high level utilities
This example can be created using HLU C and HLU FORTRAN library calls. This example demonstrates how low level utilities (LLUs) and high level utilities can be combined to create an NCAR Graphics plot. The name of the example codes used to create this plot are cn11c.c and cn11f.f. The LLUs cannot be called from an NCL script, so there is no NCL version of this example.
Discussion
Resources are controlled through a resource file called cn11.res.A detailed discussion about how to create the plot appears in the comments of the source code for the example.
Creating the plot using HLU C library calls
The HLU C program that generates this plot is called cn11c.c.
Creating the plot using HLU FORTRAN library calls
The HLU FORTRAN program that generates this plot is called cn11f.f.
Creating the plot using NCL
An NCL script for this plot has not been created.
The data
The data for the C version of this example is included in the header file for the example. The FORTRAN version reads data from an ASCII data file called cn11f.asc.
How to run this example
This example can be created using a C program (cn11c.c) or a FORTRAN program (cn11f.f). The examples are installed in the following locations:
- $NCARG_ROOT/lib/ncarg/hluex/contourplot/cn11c.c
- $NCARG_ROOT/lib/ncarg/hluex/contourplot/cn11f.f
- $NCARG_ROOT/lib/ncarg/resfiles/contourplot/cn11.res
- $NCARG_ROOT/lib/ncarg/data/asc/cn11f.asc