Size: 3867
Comment:
|
Size: 4041
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
== ZMAW Setting == | == ZMAW Settings == |
Line 22: | Line 22: |
[[/ZMAW|More ZMAW specific settings]] | |
Line 23: | Line 24: |
== Documentation and further reading == | == Courses == * [[http://wiki.zmaw.de/lehre/OpenSource2010|Open Source Scripting for Geo-Scientific Data Processing and Analysis]] by LarsKaleschke '''KlimaCampus Lecture''' = Documentation and further reading = |
Line 30: | Line 35: |
* [[http://wiki.zmaw.de/lehre/OpenSource2010|Open Source Scripting for Geo-Scientific Data Processing and Analysis]] by LarsKaleschke '''KlimaCampus Lecture''' | |
Line 33: | Line 37: |
== Modules for Scientific Computing and Visualization == | = Modules for Scientific Computing and Visualization = |
Line 35: | Line 39: |
=== SciPy/NumPy === | == SciPy/NumPy == |
Line 49: | Line 53: |
=== GDAL === | == GDAL == |
Line 51: | Line 56: |
* [[http://wiki.zmaw.de/ifm/gdal|ZMAW GDAL]] | |
Line 52: | Line 58: |
To enable GDAL use {{{ module load gdal }}} {{{ from osgeo import gdal }}} === PyNGL PyNio === |
== PyNGL PyNio == |
Line 67: | Line 63: |
To enable PyNGL (on ZMAW Linux ia32/x64 and solaris10) you have to type {{{ module load PyNGL/1.2.0 }}} Please note, that Nio should be on the top of the list, e.g. {{{ import Nio from osgeo import gdal import pylab as pl }}} === Python Interface to GrADS === |
== Python Interface to GrADS == |
Line 83: | Line 65: |
=== RPy === | == RPy == |
Line 86: | Line 68: |
=== F2PY: Fortran to Python interface generator === | == F2PY: Fortran to Python interface generator == |
Line 92: | Line 74: |
== Topical Modules == | = Topical Modules = |
Line 99: | Line 81: |
== Python and Climate == | = Python and Climate = |
Line 101: | Line 83: |
* [[http://geosci.uchicago.edu/~rtp1/ClimateBook/ClimateBook.html|Principles of Planetary Climate (RAYMOND T. PIERREHUMBERT)]] | |
Line 104: | Line 85: |
* [[http://code.google.com/p/pyccsm/|pyccsm A Python version of the CCSM coupler]] | |
Line 105: | Line 87: |
== Download (try this at home) == | = Download (try this at home) = |
Line 116: | Line 98: |
= Literature = * Python Scripting for Computational Science, Hans Petter Langtangen, Springer (available in the ZMAW library) * Matplotlib for Python Developers - Build remarkable publication quality plots the easy way, Sandro Tosi, Packt Publishing, Birmingham - Mumbai, 2009 * [[http://geosci.uchicago.edu/~rtp1/ClimateBook/ClimateBook.html|Principles of Planetary Climate (RAYMOND T. PIERREHUMBERT)]] includes a large collection of Python examples |
Python at KlimaCampus
This page shall be a central help for ZMAW/KlimaCampus users of Python. Contact LarsKaleschke for permission to edit this page. Please help to fill this page with useful information about Python for climate research and data analysis.
Contents
ZMAW Settings
Python2.6.2 requires
module load R/2.7.0 module load Python/2.6.2
Courses
Open Source Scripting for Geo-Scientific Data Processing and Analysis by LarsKaleschke KlimaCampus Lecture
Documentation and further reading
http://www.python.org/doc/ Standard documentation
Modules for Scientific Computing and Visualization
SciPy/NumPy
pylab
Matplotlib/pylab Plotting functions with a high degree of Matlab compatibility
http://matplotlib.sourceforge.net/basemap/doc/html/ Matplotlib Basemap
Import the Basemap module
from mpl_toolkits.basemap import Basemap
GDAL
GDAL - Geospatial Data Abstraction Library for various satellite data formats
PyNGL PyNio
PyNGL/PyNIO Python interface to NCAR Command Language
- Scientific visualization and data formats (netCDF, HDF, GRIB etc.)
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!
Topical Modules
Seawater is a package for computing properties of seawater (UNESCO 1981 and UNESCO 1983).
Escript/Finley: Fast Finite Elements for Partial Differential Equations
More topical software can be found at http://scipy.org/Topical_Software
Python and Climate
Download (try this at home)
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)
The python(x,y) distribution contains all that above.
Literature
- Python Scripting for Computational Science, Hans Petter Langtangen, Springer (available in the ZMAW library)
- Matplotlib for Python Developers - Build remarkable publication quality plots the easy way, Sandro Tosi, Packt Publishing, Birmingham - Mumbai, 2009
Principles of Planetary Climate (RAYMOND T. PIERREHUMBERT) includes a large collection of Python examples