| grads (version 1.1.0) | index /Users/dasilva/src/pygrads/grads/__init__.py |
This package implements a Python_ interface to GrADS_ by means of
bi-directional pipes. The following modules are provided:
gacore
The module *gacore* provides the basic GrADS client class which
allows you to start GrADS, send commands to it and to retrieve the
text output produced by the *grads* application in response to such
command. This is a Pure Python module, although it requires the
GrADS binaries to have been installed on your system. This module
defines the class *GaCore*.
ganum
If you have NumPy installed, the module *ganum* will be loaded. This
module defines class *GaNum* which extends the GrADS client class
*GaCore* by providing methods for exchanging n-dimensional NumPy
array data between Python and GrADS. It also provides methods for
computing EOF and least square estimation.
galab
If PyLab/Matplotlib/Basemap is available, the module *galab* is
loaded. This module defines class *GaLab* which etends class
*GaNum* with Matplotlib/Basemap specific methods for contours,
images and other graphical functionality. This class provides high
level methods operating directly on GrADS expressions (or *fields*)
while retaining all the configurability that Matplotlib has to
offer.
gahandle
This module provides a simple container class to collect output for
query() operations.
gacm
This modules provides additional colormaps, as well as an extension
of the *Colormaps* class which allows for the definition of color
look-up takes with an alpha channel. It also extends the
*LinearSegmentedColormap* with the ability of create derived color
tables which are either reversed or provide an arbitrary scaling by
means of a lambda function.
numtypes
This module defines GaField, a class for representing GrADS
variables in Python. It consists of a NumPy masked array with a
*grid* containing coordinate/dimension information attached to it.
The generic class *GrADS* is an alias to *GaLab* when module *galab*
is sucessfully loaded (usually when NumPy, Matplotlib and PIL are
available.) Otherwise, *GrADS* is an alias to *GaNum* if module
*ganum* can be sucessfully loaded (usually when NumPy is
available). Failing that, the class *GrADS* becomes an alias to
*GaCore* which only relies on the Python standard library. The
following boolean attributes can be used to determine hich
functionality is available: HAS_GALAB, HAS_GANUM, HAS_GACM.
| Package Contents | ||||||
| ||||||
| Data | ||
| HAS_GACM = True HAS_GACORE = True HAS_GALAB = True HAS_GANUM = True __version__ = '1.1.0' | ||