XyPlot example 14

How to manipulate XyPlot data using NCL

This example can be created using HLU C library calls, HLU FORTRAN library calls, or NCL. It demonstrates the data manipulation capabilities available in NCAR Graphics and how to create data objects. The names of the source files for this example are xy14c.c, xy14f.f, and xy14n.ncl.

Discussion

This module discusses how to create this plot using HLU function calls or NCL, and it demonstrates some of the data manipulation capabilities that are available with NCAR Graphics. The example creates a series of plots that use CoordArrays objects for managing data.

The NCL version of this example also demonstrates how to use some of the data manipulation features and functions of the language to subsample or thin data and perform conversions and other mathematical operations on the data.

A resource file is not used with this example.

A detailed discussion of how this example works appears in its source code.

Creating the plot using HLU C library calls

The HLU C program that generates this plot is called xy14c.c.

Creating the plot using HLU FORTRAN library calls

The HLU FORTRAN program that generates this plot is called xy14f.f.

Creating the plot using NCL

The NCL script that generates this plot is called xy14n.ncl.

The data

The data for this plot is generated from within the program.

How to run this example

The examples are installed in the following locations:

You can copy this example and run it by typing "ng4ex xy14c", "ng4ex xy14f", or "ng4ex xy14n". A copy of the source file and resource file will be placed in your current working directory. The source code will be compiled and automatically run for you.


Quick Start Guide Control Panel

NG4.1 Home, Index, Examples, Glossary, Feedback, QSG Contents, QSG WhereAmI?


$Revision: 1.9 $ $Date: 1999/03/23 21:15:25 $