Differences between revisions 1 and 6 (spanning 5 versions)
Revision 1 as of 2008-10-30 09:41:12
Size: 1439
Editor: anonymous
Comment:
Revision 6 as of 2008-10-30 10:20:45
Size: 2604
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
 * [[http://37mm.no/mpy/idl-numpy.html|NumPy for IDL users]]  * [[http://www.cfa.harvard.edu/~jbattat/computer/python/science/idl-numpy.html|NumPy for IDL users]]
Line 13: Line 13:
== Modules == == Modules for Scientific Computing and Visualization ==
Line 31: Line 31:
=== Python Interface to GrADS ===
 * http://opengrads.org/wiki/index.php?title=Python_Interface_to_GrADS
Line 35: Line 36:
=== 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
      end
}}}

Run
{{{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

 * {{{http://cens.ioc.ee/projects/f2py2e/|F2PY: Fortran to Python interface generator}}}

== Topical Modules ==

 * [[http://www.imr.no/~bjorn/python/seawater/index.html|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
Line 36: Line 69:

A basic system for scientific computing consists of Python, ipython, numpy/scipy, pylab, and an editor of your choice
Line 40: Line 75:
 * [[http://sourceforge.net/projects/matplotlib|Matplotlib]]
 * [[http://www.crimsoneditor.com/| Editor]]
 * [[http://matplotlib.sourceforge.net/|Matplotlib/pylab]]
 * [[http://www.crimsoneditor.com/| Editor]] (a nice editor for Windows user, if you don't like to install xemacs)

Documentation

Modules for Scientific Computing and Visualization

SciPy/NumPy

pylab

GDAL

PyNGL

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

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
      end

Run 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

  • http://cens.ioc.ee/projects/f2py2e/|F2PY: Fortran to Python interface generator

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

Download

A basic system for scientific computing consists of Python, ipython, numpy/scipy, pylab, and an editor of your choice

LehreWiki: Python/Links (last edited 2009-11-25 14:07:56 by anonymous)