| Size: 2604 Comment:  | Size: 2976 Comment:  | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 61: | Line 61: | 
| * {{{http://cens.ioc.ee/projects/f2py2e/|F2PY: Fortran to Python interface generator}}} | * [[http://cens.ioc.ee/projects/f2py2e/|F2PY: Fortran to Python interface generator]] | 
| Line 68: | Line 68: | 
| === Installation in the home directory === Installation of module {{{seawater}}} in directory {{{~/modules}}} {{{ python setup.py install --prefix=~/modules/ }}} Usage {{{ import sys,os home=os.getenv('HOME') genpath=home+'/sync/lib/python2.4/site-packages/' if not sys.path.__contains__(genpath): sys.path.append(genpath) from seawater import * }}} | 
Documentation
Modules for Scientific Computing and Visualization
SciPy/NumPy
pylab
- Matplotlib/pylab Plotting functions with a high degree of Matlab compatibility 
GDAL
- GDAL - Geospatial Data Abstraction Library for various satellite data formats 
PyNGL
- PyNGL/PyNIO Python interface to NCAR Command Language 
- Scientific visualization and data formats (netCDF, HDF, GRIB etc.)
To enable PyNGL (on ZMAW Linux ia32/x64 and solaris10) you have to type
module load PyNGL/1.2.0
Python Interface to GrADS
RPy
- RPy (R from Python) Statistical computing and graphics 
F2PY: Fortran to Python interface generator
Calling Fortran code from python is easy! Create a file hello.f:
C File hello.f
      subroutine foo (a)
      integer a
      print*, "Hello from Fortran!"
      print*, "a=",a
      endRun f2py -c -m hello hello.f
Now in IPython try:
In [1]: import hello In [2]: hello.foo(4) Hello from Fortran! a= 4
Example taken from
Topical Modules
- Seawater is a package for computing properties of seawater (UNESCO 1981 and UNESCO 1983). 
More topical software can be found at http://scipy.org/Topical_Software
Installation in the home directory
Installation of module seawater in directory ~/modules
python setup.py install --prefix=~/modules/
Usage
import sys,os
home=os.getenv('HOME')
genpath=home+'/sync/lib/python2.4/site-packages/'
if not sys.path.__contains__(genpath):
    sys.path.append(genpath)
from seawater import *
Download
A basic system for scientific computing consists of Python, ipython, numpy/scipy, pylab, and an editor of your choice
- Editor (a nice editor for Windows user, if you don't like to install xemacs) 
