Differences between revisions 1 and 14 (spanning 13 versions)
Revision 1 as of 2012-07-05 14:05:41
Size: 4077
Editor: anonymous
Comment:
Revision 14 as of 2013-01-30 15:02:00
Size: 6571
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:
== Why python rocks! ==

 * [[http://journals.ametsoc.org/doi/full/10.1175/BAMS-D-12-00148.1|Why Python Is the Next Wave in Earth Sciences Computing]]
 * [[http://www.stat.washington.edu/~hoytak/blog/whypython.html | 10 reasons python rocks for research]]
 * [[http://www.theregister.co.uk/2012/06/18/scripting_languages_in_the_enterprise/ | Python wraps its coils around the enterprise ]]
 * [[http://clearclimatecode.org/ | Clear climate code ]]
Line 21: Line 27:
Etch32 (Desktop):
{{{
module load Python/2.6.2
}}}
Line 26: Line 28:
[[/ZMAW|More ZMAW specific settings]] = Getting started ... =
Line 28: Line 30:
== Courses == ==== ZMAW internal ressources ====
Line 30: Line 32:
 * [[/PythonLES | MPI-M, Land department python seminar series, 2012]] by Alex Loew and Julia Pongratz
Line 31: Line 34:
 * [[http://emolch.org/pythonbootcamp.html | Sebastian Heimann's MPI-M lecture (scroll to the bottom of the webpage)]]

==== External ressources / tutorials ====
 * [[http://wiki.python.de/ | Python Wiki (in German only)]]
 * [[ https://github.com/downloads/diveintomark/diveintopython3/dive-into-python3.pdf | Dive into Python 3]]
 * [[http://www.greenteapress.com/thinkpython/thinkpython.pdf | Think Python - How to think like a computer scientist]]
 * [[http://scipy-lectures.github.com/_downloads/PythonScientific-simple.pdf | Python Scientific Lecture Notes]]
 * [[http://greenteapress.com/pythonhydro/pythonhydro.pdf | Python in Hydrology]]

Line 32: Line 45:
= Documentation and further reading = = Documentation and further information =
Line 39: Line 52:
 * [[http://marakana.com/s/post/1133/advanced_matplotlib_tutorial_with_library_author_john_hunter#c132880|Advanced matplotlib tutorial with library author John Hunter, 2012 PyData Workshop]]
 * [[http://marakana.com/s/post/1090/2012_pydata_workshop|More video tutorials from the PyData Workshop]]
Line 42: Line 56:

A good summary webpage how to use geospatial data (e.g. netCDF, GRIB) with python is given [[http://www.esr.org/~chjiang/python.html | here]].
Line 91: Line 108:
= IPython Notebooks =

A [[http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html|notebook]] is a combination of two things:
 
 1. An interactive session connected to an IPython kernel, controlled by a web application that can send input to the console and display many types of output (text, graphics, mathematics and more).
 2. A document that can save the inputs and outputs of the session as well as additional text that accompanies the code but is not meant for execution. In this way, notebook files serve as a complete computational record of a session including explanatory text and mathematics, code and resulting figures.

{{{
module load python/2.7-ve2
ipython notebook --pylab inline
}}}


Line 103: Line 134:
or try [[http://www.sagemath.org/|Sage (Mission: Creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab)]].

Python at KlimaCampus

This page shall be a central help for ZMAW/KlimaCampus users of Python. Contact AlexLoew or LarsKaleschke for permission to edit this page. Please help to fill this page with useful information about Python for climate research and data analysis.

Why python rocks!

ZMAW Settings

SNOW, SQUALL:

module load python

Getting started ...

ZMAW internal ressources

External ressources / tutorials

Documentation and further information

Modules for Scientific Computing and Visualization

A good summary webpage how to use geospatial data (e.g. netCDF, GRIB) with python is given here.

SciPy/NumPy

pylab

Import the Basemap module

from mpl_toolkits.basemap import Basemap

GDAL

PyNGL PyNio

Python Interface to GrADS

RPy

F2PY: Fortran to Python interface generator

Calling Fortran code from python is easy!

Fortran to Python

Topical Modules

More topical software can be found at http://scipy.org/Topical_Software

Python and Climate

IPython Notebooks

A notebook is a combination of two things:

  1. An interactive session connected to an IPython kernel, controlled by a web application that can send input to the console and display many types of output (text, graphics, mathematics and more).
  2. A document that can save the inputs and outputs of the session as well as additional text that accompanies the code but is not meant for execution. In this way, notebook files serve as a complete computational record of a session including explanatory text and mathematics, code and resulting figures.

module load python/2.7-ve2
ipython notebook --pylab inline

Download (try this at home)

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

The python(x,y) distribution contains all that above.

or try Sage (Mission: Creating a viable free open source alternative to Magma, Maple, Mathematica and Matlab).

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

LehreWiki: PythonCourse (last edited 2015-03-12 16:36:16 by anonymous)