Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2012-07-05 16:10:43
Size: 2462
Comment:
Revision 10 as of 2012-07-11 14:27:42
Size: 3772
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= LES python seminar series = = LES python seminar series (Thursday, 10:30 - 12:00) =
Line 20: Line 21:
=== Working with arrays (Gernot,Michael) (19.07.2012) ===
 * numpy arrays (indexing, slicing, views ...)
=== Working with arrays (Gernot, Michael) (19.07.2012) ===
 * general information on [[http://docs.python.org/reference/datamodel.html|python data model]] ([[http://docs.python.org/library/copy.html | copy, references, deepcopy]])
 * [[http://docs.python.org/library/functions.html#map|map]] and [[http://docs.python.org/tutorial/controlflow.html#lambda-forms|lambda]] functions
 * [[http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html|numpy arrays]] (indexing, slicing, views ...)
Line 23: Line 26:
 * general information on python data model (copy, references, deepcopy)
 * masked arrays
  * data type conversions
  * [[http://docs.scipy.org/doc/numpy/reference/routines.math.html|elementwise functions]]
  * [[http://docs.scipy.org/doc/numpy/reference/routines.linalg.html|linear algebra]]
  * [[http://docs.scipy.org/doc/numpy/reference/routines.statistics.html|array statistics]]
 * [[http://docs.scipy.org/doc/numpy/reference/maskedarray.generic.html|masked arrays]]
Line 26: Line 32:
 * map and lambda functions
 * pickle, cPickle
  * [[http://docs.scipy.org/doc/numpy/reference/routines.io.html|numpy input and output]]
  * general input and output ([[http://docs.python.org/library/functions.html#open|opening a file]] and [[http://docs.python.org/library/stdtypes.html#file-objects|working with a file]])
 * [[http://docs.python.org/library/pickle.html|pickle]], cPickle
Line 30: Line 37:
 * subplots, figure, axis objects
 * a brief tour through matplotlib gallery
 * subplots, figure, axis objects; easy and more sophisticated appraoches
 * always use figure/ax

 * a brief tour through [[http://matplotlib.sourceforge.net/gallery.html |matplotlib gallery]]
Line 36: Line 44:
 * working with different axes in a single plot; twinx()
 * saving figures
  * fitting to actual content
Line 41: Line 52:
 * GDAL: the door to all available data formats ?    * data type conversions
 * [[http://www.gdal.org/ | GDAL]]: the door to a huge number of different file formats ...
Line 49: Line 61:
 * how to debug a python program?
Line 61: Line 74:
=== pyCMBS (Alex) (???? on a separate day BEFORE the summer break ???) === === pyCMBS (Alex) ===
Line 67: Line 80:
=== Integration of other programming languages === === Integration of other programming languages (Alex, no date yet) ===
Line 72: Line 85:



Line 90: Line 99:
 * GUI programming  * GUI programming (Alex, remon???)
Line 101: Line 110:


LES python seminar series (Thursday, 10:30 - 12:00)

contact: Alex Loew, Julia Pongratz

What you should be able to do in advance

  • python programming structures
  • if clauses
  • function calling
  • print statements
  • well, running python scripts (in python shell and interactive shell like ipython)
  • edit python scripts in the editor of your choice
  • ...


Seminar outline

Working with arrays (Gernot, Michael) (19.07.2012)

Plotting (1D,2D,3D) (Alex) (2.8.2012)

  • subplots, figure, axis objects; easy and more sophisticated appraoches
  • always use figure/ax
  • a brief tour through matplotlib gallery

    • lineplots
    • fill between
    • contour plots
  • nice colorbars, colormaps handling etc.
  • working with different axes in a single plot; twinx()
  • saving figures
    • fitting to actual content

Geospatial data format handling and vizualization (Mikhail) (09.08.2012)

  • Nio - handling netCDF
    • read netCDF
    • write netCDF
      • data type conversions
  • GDAL: the door to a huge number of different file formats ...

  • Basemap
  • pyNGL

system operations (Michael) (30.8.2012)

  • replacing BASH: working with os adn system objects
  • os.system, subprocess etc.
  • python as a replacement for bash
  • how to debug a python program?

structuring a program (Mikhail) (13.9.2012)

  • python functions with optional and kwargs
  • python object oriented programming (classes etc)


time series analysis: the Pandas module (Mikhail)

  • introduction to pandas timeseries analysis module

pyCMBS (Alex)

  • introduction to pyCMBS
  • cdo interfacing
  • anomaly calculations, hovmoeller plots etc

Integration of other programming languages (Alex, no date yet)

  • R
  • f2py
  • C-code
  • matlab

scientific data analysis in python

  • EOF, SVD analysis

running JSBACH offline in a python environment (Gernot)

parallel programming (Heinrich Widmann)

  • openMP, MPI, subprocesses, threads

statistics in python (???)

  • statistical analysis of large data sets

other topics

  • animations
  • GUI programming (Alex, remon???)
  • H5PY - simple access to HDF5 files
  • python2.x or python3.x (does it make a difference?)

projects to work on ...

  • MPI-ESM in python (Christian) ;-)

LehreWiki: PythonCourse/PythonLES (last edited 2012-12-19 13:14:36 by AlexanderLoew)