NCL Home>
Application examples>
Special plots ||
Data files for some examples
Example pages containing:
tips |
resources |
functions/procedures
NCL: Three-Dimensional Graphics
There's a separate page showing how to create NCL plots of WRF output data in 3D.
These examples are generated by routines that are part of the
low-level TDPACK package,
which is a group of Fortran and C callable routines for projecting
objects from a 3-dimensional coordinate system having U, V, and W axes
to a 2-dimensional projection plane having X and Y axes and/or for
drawing the projections of those objects. This can be referred to
somewhat loosely as "drawing objects in three dimensions".
The NCL routines are nothing more than wrappers around the Fortran
versions of these functions, and hence are not intended to behave like
other drawing interfaces in NCL, where you set resources to change
plot options.
tdpack_1.ncl:
This example shows how to use the simplified
tdez2d
procedure to draw a surface. The data are input as two 1D arrays,
and one 2D array of the same dimensions as the 1D arrays.
tdpack_2.ncl:
This example shows how to use the simplified
tdez3d
procedure to draw an isourface. The data are input as three 1D arrays,
and one 3D array of the same dimensions as the 1D arrays.
tdpack_3.ncl: This example shows
how to generate a 3D scatter plot.
tdpack_4.ncl: This example shows
how to create a surface and an isosurce shade them in different
colors.
tdpack_5.ncl: This example shows
how to create a several isosurfaces and shade them in different
colors. This example requires the data file
tdpack5.bin.
tdpack_6.ncl: This example shows
how to draw curves with arrowheads.