DOKK / manpages / debian 10 / libncarg-bin / ng4ex.1nhl.en
ng4ex(1Nhl) ng4ex(1Nhl)

ng4ex - NCAR Graphics High Level Utilities Example Programs

ng4ex [-A] [-C] [-Fortran] [-NCL] [-cdf] [-csagrid] [-cssgrid] [-gui] [-anno] [-gsun] [-W workstation_type] [-app] [-basic] [-contourplot] [-fitgrid] [-labelbar] [-legend] [-primitives] [-mapplot] [-natgrid] [-ngmath] [-streamplot] [-shgrid] [-textitem] [-tickmark] [-title] [-vectorplot] [-xyplot] [-list] [-clean] [-n] name ...

ng4ex provides the user with access to several C, Fortran, and NCL examples illustrating the use of the NCAR Graphics HLUs (High Level Utilities) and NCL. Please note that NCL is not available for Cray systems.

ng4ex copies the source code for the specified example(s) into the current directory and then compiles, links, and executes the example (if it's a Fortran or C program) or runs NCL on it (if it's an NCL script file). Depending on the example, the output may be sent to an NCGM (NCAR Graphics Metafile) file and/or displayed to an X window on your screen. You must be running X and have your DISPLAY environment set correctly in order for the X window examples to execute properly.

If the requested example creates an NCGM file, it will have the same name as the example, suffixed with ".ncgm". An option allows you to request that only the source code be copied to your directory, without compiling or running the example. Another option allows you to request that only the NCGM file be left in your directory and that all other files created by ng4ex be deleted. The argument name may be selected from the lists that appear below.

Generate all available examples.

Generate all C examples.

Generate all Fortran examples.

Generate all NCL examples.

Generate all the examples that use netCDF files. For the C and Fortran examples, this option requires that you have the netCDF library installed on your system.

Generate all GUI examples. This option requires that you have the Motif libraries on your system.

Generate all annotation examples.

Specify the workstation type. This argument can only be specified as a string. Some examples are meant to display to the X workstation, to an NCGM file, or to a PostScript file only, in which case this option may be ignored. You cannot specify more than one workstation type. If you don't specify one, then a default one will be used. The following workstation_type strings are valid:
- NCGM file
- X11 window
- PostScript file
- PDF file

Generate all the app Fortran, C, and NCL examples that show how to do specific things with resources.

Generate all the basic Fortran, C, and NCL examples that relate to the basic examples discussed in the Quick Start Guide.

Generate all Fortran, C, and NCL ContourPlot examples.

Generate all NCL Csagrid examples.

Generate all NCL Cssgrid examples.

Generate all Fortran, C, and NCL Dsgrid examples.

Generate all NCL Natgrid examples.

Generate all Fortran, C, and NCL Labelbar examples.

Generate all Fortran, C, and NCL Legend examples.

Generate all Fortran, C, and NCL Natgrid examples.

Generate all Fortran, C, and NCL GraphicStyle examples.

Generate all Fortran, C, and NCL MapPlot examples.

Generate all Fortran, C, and NCL Ngmath examples.

Generate all NCL Shgrid examples.

Generate all Fortran, C, and NCL StreamlinePlot examples.

Generate all Fortran, C, and NCL TextItem examples.

Generate all Fortran, C, and NCL TickMark examples.

Generate all Fortran, C, and NCL Title examples.

Generate all Fortran, C, and NCL VectorPlot examples.

Generate all Fortran, C, and NCL xyPlot examples.

Generate all the GSUN examples (NCL scripts only).

Specifies that the names of the selected examples should be echoed to the screen instead of being copied or generated. This option must be used with one of the other options that selects a particular subset of examples. For example, if you want to see a list of all the available examples, then use -list in conjunction with the -A option. If you want to see a list of all the ContourPlot examples, then use -list with the -contourplot option (and so on).

Remove everything but the ".ncgm" file.

Specifies that the example should just be copied, and not linked or executed.

Name(s) of example programs to generate.

Please notice that the C examples end with the letter 'c', the Fortran examples end with the letter 'f', and NCL examples with the letter 'n'.

Demonstrates various ways to use resource files.
Demonstrates how to draw a contour plot using mostly defaults. No data is used in this example.
Demonstrates how to set the view port and how to produce multiple plots on a single frame.
Demonstrates how to create a scalar data object, set resources using a resource file, set resources during object creation, and set resources after object creation.
Demonstrates how to select and change the workstation device for drawing your output to an NCGM file or an X workstation window.
Demonstrates how to read and manipulate colormaps.
Demonstrates how to position objects on an output device and how to change their sizes.
Demonstrates creating three simultaneous workstations.
Demonstrates use of a procedure that limits a plot, including annotations that extend outside the plot viewport, to a pre-defined bounding box within NDC space.
Lists all the fonts with their number, name, and what the font looks like.
Shows all the default settings for the ContourPlot resources using a simple data set.
Demonstrates basic features of the ContourPlot object.
Demonstrates basic features of the ContourPlot object. The first frame emulates the contour plot drawn in cn01.
Emulates the output of the ncargex example "cpex02".
Demonstrates how to create a map plot animation with a contour overlay and labelbar annotation.
Shows how to read a netCDF file and produce a series of temperature contour plots.
Shows how to read a netCDF file and produce a series of contour plots.
Shows how to read a netCDF file and draw a vertical profiles of temperature for longitude separated by 5 degrees.
Shows how to read a netCDF file and produce a series of surface pressure contour plots.
Demonstrates how to read a netCDF file and produce three contour plots, an xyplot, and a map plot.
Demonstrates how to combine LLU and HLU calls.
Emulates example "cpex08" and draws a filled contour plot over a map of Africa with a labelbar.
Emulates example "mpex10" and draws a raster contour plot over a map using inverse map transformations.
Shows how to do a contour/map overlay with tick marks showing the lat/lon locations.
Shows how to combine contour plot and xy plot on a single frame. Also shows how to do multiple workstation outputs, and how to position your PostScript output on the page.
Shows how to combine a vector fill contour plot, a raster contour plot, and a map plot on a single frame.
Shows how to restrict a contour plot to a certain area over a satellite projection, how to label the US states with AnnoManager, how to use NhlDataPoly{line,marker} to draw lines/markers on a map projection, and how to mix LLUs/HLUs to draw text in the map projection. The NCL version doesn't have the LLU/HLU part.
Shows all the default settings for the LabelBar resources.
Shows how to modify some of the default resources to create a solid filled set of boxes.
Shows all the default settings for the Legend resources.
Shows how to modify some of the default resources to create a legend of five markers.
Shows how to create a legend of five lines.
Demonstrates basic GraphicStyle capabilities.
Demonstrates GraphicStyle capabilities and how to some GS resources.
Demonstrates graphics primitives drawn in NDC space and how clipping works.
Demonstrates graphics primitives drawn into an IrregularPlot object.
Demonstrates overlaying graphics primitives on a MapPlot.
Demonstrates basic MapPlot capabilities.
Demonstrates individual control of MapPlot areas.
Demonstrates MapPlot masking; loosely emulates the ncargex example "colcon".
Illustrates the use of AnnoManager objects with MapPlot objects.
Shows how to create the ten different map projections.
Shows how to draw county lines in the United States.
Shows how to use high resolution RANGS/GSHHS map database.
Simple example of natural neighbor linear interpolation.
Simple example of natural neighbor linear regridding.
Shows how to retrieve aspects and slopes of an interpolation.
Shows a simple 3D interpolation.
Shows how to vary the exponent of the distances in a simple 2D interpolation..
Smoothing in a simple 2D interpolation.
Illustrates use of ftcurv, ftcurv, and ftcurvi.
Illustrates use of ftcurvp and ftcurvpi.
Illustrates use of ftcurvs and ftcurvps.
Illustrates use of ftkurv and ftkurvd.
Illustrates use of ftkurvp and ftkurvpd.
Illustrates use of ftsurf.
Illustrates the use of csa1s.
Illustrates the effect of weighting the input points using csa1xs.
Illustrates extrapolation into data sparse regions using csa1xs.
Illustrates two-dimensional approximation and second-order mixed partial using csa2s and csa2xs.
Illustrates the use of csa3s.
Illustrates the use of csa2ls.
Illustrates the use of triangulation and Voronoi diagram capabilities of the cssgrid package.
Illustrates the use of the interpolation capabilities of the cssgrid package.
Illustrates the use of shgrid. cssgrid package.
Demonstrates basic StreamlinePlot example.
Demonstrates line-drawn streamline arrows and some basic resources.
Shows how to overlay a StreamlinePlot on a map projection.
Shows a StreamlinePlot of wind vector data over a MapPlot.
Shows all the default settings for the Title resources which results in a blank plot.
Turns on the main, x-axis, and y-axis strings to produce a plot with three titles.
Shows how to change resources to get high quality filled and colored titles.
Shows all the default settings for the TickMark resources.
Shows how to modify the resources to create tick marks on the axes.
Shows how to modify the resources to change the scaling and the tick mark labels.
Shows all the default settings for the TextItem resources.
Shows how to modify default resources to produce a text string.
Uses the same resources as example "tx02c", except 114 frames are produced with varying background colors.
Shows how to use the TextItem object of the HLU library.
Demonstrates the TextItem object with text having various heights and various angles.
Demonstrates TextItem text justifications.
Demonstrates TextItem text spacings and aspect ratios.
Simple Annotation example.
Basic VectorPlot example.
Demonstrates line-drawn vector arrows and the use of some basic VectorPlot resources.
Manipulates the FillArrow resources to demonstrate some of the possible stylistic variations on the appearance of filled vector arrows.
Demonstrates how to rotate a VectorPlot 90 degrees while preserving the original relationship of the data elements.
Demonstrates how to overlay a VectorPlot on a MapPlot.
Demonstrates how to use a scalarfield to determine the color of the vector arrow fill.
Emulates the LLU example "fcover"; shows how to overlay contours and vectors on a MapPlot.
Plots wind vectors at a grid stride of 3. Vectors are colored by wind speed.
Plots an animation of the January 1996 snow storm using wind vectors colored by temperature over a pressure field contour plot.
Shows all the default resources for an xyPlot object.
The same as example xy01c, only with some of the X and Y axis resources tweaked.
The same as example xy01c, but with the data modified a little, and the line resources tweaked.
Demonstrates how to create an xyPlot with multiple lines. Some of the line resources are tweaked.
Demonstrates how to create an XyPlot with multiple lines, using multiple data items (except for xy05c, which uses the CoordArrTable object).
Demonstrates how to read in netCDF files to generate various xy plots.
Demonstrates how to draw a "scattergram".
Shows how to use irregular points to change the transformation of your plot.
Shows how to create different kinds of axes.
Shows how to overlay an XyPlot on a MapPlot.
Demonstrates how to display an xyPlot to an X Window, and then copy it to a meta file.
Demonstrates how to incorporate the HLU library with a GUI. It uses an X/Motif interface, and also allows the user to copy frames from the X Window to a meta file.
Shows how to interactively retrieve data values from a plot by pointing and clicking on the plot.
Demonstrates the data manipulation capabilities of NCL.
Demonstrates the creation of a set of four stacked XyPlots.
Demonstrates how to draw three different xy lines on the same plot, but with different axis scales.
Demonstrates how to stack three xy plots.

ncargex(1NCARG)

Copyright (C) 1987-2000
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.

NCARG Nhl EXAMPLES