Commit 65c2d3de authored by Frank Hellmann's avatar Frank Hellmann Committed by GitHub

bla

parent 3fa80f13
# Python lesson outline
## Targets for the course
- Structure your code (functions and modules, everything else is out of scope)
- Think about possible errors
- document, document, document
- use version control
## Assumptions
90 minute blocks
- 1 block shell
- 1 block git
- 4-5 blocks of python
# Python lesson outline - Spring 2017 course
## DAY 1
......@@ -23,54 +8,24 @@
### Session PM1 GIT
### Session PM2 Python Intro (basic overview)
- python+anaconda+conda+jupyter+history
- operators, data structures (tuples, lists, dicts, nparrays, panda.df, etc)
- object types (string, number, boolean, complex, etc)
- provided functions + methods, atrributes
- control flows: loops + conditions
- numpy
- read file, simple plot (or in session PM2)
### Session PM2 Python Intro
## DAY 2 AM
- TODO
### Session AM1 Python (structuring code, defensive programming, using prepared ts files)
- write function + module
- put under version control
- simple test (assert)
- documentation
- write script + call from bash
- traceback, errors
## DAY 2 AM
not covered: closures, argpars, numba
### Session AM1 Python Basics I
### Session AM2: Time series, functions, plotting
- reading + understanding documentation of functions
- TODO
Global temperature average development 1750-2010
http://berkeleyearth.lbl.gov/auto/Global/Raw_TAVG_complete.txt
### Session AM2: Python Basics II
- download file (optional: call shell with wget from python/R)
- read, process
- moving average
- plot with uncertainty band
- write function (exercise!)
- TODO
## DAY 2 PM
### Session PM1: higher dimensional (spatial) data, advanced plotting + cartography, application of aquired knowledge
gridded data Europe:
- read netcdf file
- plot map of one time slice
- now compare plot with given cuteplot function by Joachim
- extract time series Potsdam
- compare with global average from Berkeley
### Session PM1: Python Final Project
### Session PM2: Git in practice (optional if we ran out of time)
- use git: final commit
- create github/gitlab account + create repos + add remote
- git push + inspect online
- github/gitlab release
- outro, feedback
- TODO
### Session PM2: Wrap up
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment