NCL > Application examples > Basic examples

Ngmath example 15

Illustrates the use of csa1xs.

This example can be created using NCL. It demonstrates how to use the Csagrid package to find an approximating cubic spline for one-dimensional input data (Csagrid is part of the Ngmath library). The name of the source file for this example is nm15n.ncl.

Discussion

This module discusses how to use the Csagrid package from within NCL.

Creating the plot using HLUs

There is no HLU C program version of this example.

Creating the plot using HLU FORTRAN library calls

There is no HLU Fortran program version of this example.

Creating the plot using NCL

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

The data

This plot does not use any external data.

How to run this example

This example can be generated using an NCL script (nm15n.ncl). The example is installed in the following location:

  • $NCARG_ROOT/lib/ncarg/nclex/ngmath/nm15n.ncl
You can copy this example and run it by typing "ng4ex nm15n". A copy of the source file and resource file will be placed in your current working directory and run through NCL for you.

working directory and run through NCL for you.