Overview of the PyNGL examples

The PyNGL examples give you an overview of the graphic capabilities of the package and provide a tutorial introduction. Other useful example-related links are provided - a summary is presented in a list below.

Many examples require the Nio module from PyNIO to read in NetCDF, GRIB, HDF, shapefile, and other self-documenting formats.

The general code structure of the PyNGL examples is as follows:

Read data
Data are either generated from within the PyNGL script or read from either an ASCII file or a netCDF file.

Process data
Some of the examples show how to process data by converting units, masking values, interpolating to a regular grid, and so forth.

Visualize data
Almost every example generates one or more visualizations, including XY plots, contour plots, vector plots, map plots, and streamline plots.

Write data
Some of the examples show how to write data to a file.

Useful example-related links.

gallery
Provides all graphic images produced from PyNGL examples as well as links to all source codes used to create the examples.
alphabetical
An alphabetical listing of all PyNGL examples together with brief descriptions and links to the sources.
tutorial
A step-by-step guide to PyNGL that introduces new concepts through a series of example Python scripts. Each of the eleven examples contains line-by-line descriptions.
by category
Lists the examples by category (such as "contouring", "vectors", and so forth) and provides links to the examples in those categories.
by function
For any given PyNGL function, this page lists all the examples where that function is called.
by resource
For any given PyNGL resource that is used in an example, this page lists all the example where the resource is used.