Commit 3fa80f13 authored by Frank Hellmann's avatar Frank Hellmann

old outline

parent f5ccd1bd
# 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
## DAY 1
### Session AM1 Intro/Lightning talks
### Session AM2 Shell
### 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)
## DAY 2 AM
### 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
not covered: closures, argpars, numba
### Session AM2: Time series, functions, plotting
- reading + understanding documentation of functions
Global temperature average development 1750-2010
http://berkeleyearth.lbl.gov/auto/Global/Raw_TAVG_complete.txt
- download file (optional: call shell with wget from python/R)
- read, process
- moving average
- plot with uncertainty band
- write function (exercise!)
## 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 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
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