Differences between revisions 20 and 21
Revision 20 as of 2012-08-09 05:15:12
Size: 4102
Comment:
Revision 21 as of 2012-08-15 20:07:45
Size: 4266
Editor: MikhailItkin
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

Line 20: Line 18:
=== Working with arrays (Gernot, Michael) (19.07.2012) ===
 . [[PythonCourse/PythonLES/SeminarLog1|Commented examples from the seminar]]
Line 21: Line 21:
=== Working with arrays (Gernot, Michael) (19.07.2012) ===
 [[/SeminarLog1|Commented examples from the seminar]]

* general information on [[http://docs.python.org/reference/datamodel.html|python data model]] ([[http://docs.python.org/library/copy.html | copy, references, deepcopy]])
 * general information on [[http://docs.python.org/reference/datamodel.html|python data model]] ([[http://docs.python.org/library/copy.html|copy, references, deepcopy]])
Line 39: Line 36:

[[/SeminarLog2 | Course material for plotting]]
[[PythonCourse/PythonLES/SeminarLog2|Course material for plotting]]
Line 43: Line 39:
Line 44: Line 41:
 * a brief tour through [[http://matplotlib.sourceforge.net/gallery.html |matplotlib gallery]]  * a brief tour through [[http://matplotlib.sourceforge.net/gallery.html|matplotlib gallery]]
Line 52: Line 49:
 * [[http://matplotlib.sourceforge.net/users/tight_layout_guide.html | tight_layout]]  * [[http://matplotlib.sourceforge.net/users/tight_layout_guide.html|tight_layout]]
Line 54: Line 51:
=== Geospatial data format handling and vizualization (Mikhail) (16.08.2012)  ===
 * Nio - handling netCDF
=== Geospatial data format handling and vizualization (Mikhail) (16.08.2012) ===
[[IoBasemapNgl|Lesson code examples]]

* [[http://www.pyngl.ucar.edu/Nio.shtml|PyNio]] - handling netCDF
Line 61: Line 60:
 * [[http://www.gdal.org/ | GDAL]]: the door to a huge number of different file formats ...
 * Basemap
 * pyNGL
 
 * [[http://www.gdal.org/|GDAL]]: the door to a huge number of different file formats ...
 * [[http://matplotlib.github.com/basemap/|Basemap]]
 * [[http://www.pyngl.ucar.edu/|pyNGL]]
Line 71: Line 70:
=== structuring a program (Mikhail) (13.9.2012)  === === structuring a program (Mikhail) (13.9.2012) ===
Line 80: Line 79:

Line 86: Line 83:
Line 98: Line 94:
Line 103: Line 98:
 * statistical analysis of large data sets   * statistical analysis of large data sets
Line 111: Line 106:
Line 114: Line 108:



 

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

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)

Course material for plotting

* 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
  • tight_layout

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

Lesson code examples

  • PyNio - handling netCDF

    • read netCDF
    • write netCDF
      • data type conversion
        • how to write a numpy array (double) in a float netcdf variable?
        • how to store data as scaled integers?
  • 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)