Installation
Describes the installation of ioapiTools and additional packages for
plotting. In order to install CDAT with IOAPI enabled, you need a Fortran compiler.
http://www-pcmdi.llnl.gov/software-portal/cdat/download
The specific sections are: 1) Express install, 2) seperate python install, 3) Mac fink install, and 4) additonal plotting packages.
1. Express install
The easiest way to install ioapiTools and CDAT in general is to do an express install. This will build all the necessary software (including its own version of python). To do this, go to the cdat top directory, determine where you want to install it, and run:
$ ./express_install ~/ --enable-ioapiThis will enable the building of the ioapiTools module and all its requirements, and it will build it under your home directory.
If you have system administrator privileges and want to install it in a central place on your system, try:
$ sudo ./express_install /usr/local/cdat-4.0 --enable-ioapiThis will build it under /usr/local/cdat-4.0.
When you want to use it, remember to use the python that you have built through CDAT. So in our home directory case, we would start the interpeter:
$ ~/bin/pythonSee CDAT's Installation documentation for the latest information on express install.
2. Using separate python install
Instead of building everything, I like to use my distribution's own python. The advantage, is that all python modules are in the same, central location. The disadvantage is that the build process is a bit harder and more prone to errors.
Prerequisites for building CDAT with your own python is that you need to have the development version of python and the python package for megawidgets. In a debian system, get "python-dev" and "python-pmw".
To build CDAT using your own python, you will need to first build the external software and then build CDAT and the contributed packages. Most likely, you will be installing this in a central directory (for example /usr) and will need to be root or have root priveleges through sudo:
$ cd exsrcThis will build the external software. Check for errors in the logs, especially in ioapi, gdal, and netcdf.
$ sudo ./install_script /usr --enable-ioapi
Then build the rest of CDAT and the contrib packages. From the top cdat directory:
$ sudo /usr/bin/python install.py --enable-ioapiThis assumes that your python is the one in /usr/bin. If not, you should use the full path to your python. Again, check the log files for error, especially pyIoapi.
See CDAT's Installation documentation for more details.
3. Mac install via fink
First you need to have a working version of fink or install it on your system:
http://fink.sourceforge.net/
You need to be running fink in the unstable mode:
http://fink.sourceforge.net/faq/usage-fink.php?phpLang=en#unstable
You can then either install cdat through the program FinkCommander or from the command line:
$ fink install cdatThis will install cdat with IOAPI enabled and all its dependencies.
4. Additional packages for plotting
The built in plotting functions in ioapiTools requires the
installation
of two additional python packages: matplotlib (version 0.74 or greater)
and the toolkit basemap (version 0.5 or greater). The
matplotlib package is a very flexible and powerful plotting package for
scientific plotting. The basemap package is an addition to the
basic matplotlib package that provides mapping and projection
capabilities. These are not needed if you don't need plotting
functionality or only want to use CDAT's intrinsic plotting
capabilities.
I recommend setting up matplotlib in interactive mode. For example, my matplotlibrc file has the following settings:
backend : GTKAgg # the default backend
numerix : Numeric # Numeric or numarray
interactive :
True # see
http://matplotlib.sourceforge.net/interactive.htm
I also recommend using the ipython interpreter with the -pylab option
to more fully take advantage of matplotlib's interactive mode:
$ ipython -pylab
See the matplotlib web page for more details on installation, setup, and direct plotting commands:
http://matplotlib.sourceforge.net
If your using fink on a Mac, you can install the following packages: matplotlib-py24 and matplotlib-basemap-py24.