Commit f5ccd1bd authored by Frank Hellmann's avatar Frank Hellmann Committed by GitHub

Changed outline to python only and assumption that we don't touch git/shell part.

parent 665cb2a3
# swc workshop 2017 Fall
# Python lesson outline
## Open questions
## Targets for the course
Frank: formulate targets (Python specific)
Stefan/Marvin/Peter/Martin: how(+why) to integrate shell usage in later R sessions
?: prepare time series files
Stefan/Marvin: if + where to introduce tidyverse
- Structure your code (functions and modules, everything else is out of scope)
- Think about possible errors
- document, document, document
- use version control
## Assumptions
## DAY 1 AM --- both
90 minute blocks
### Session AM1 (get started, know what we're doing these days)
- intro
- lightning talks participants
- course outline
- 1 block shell
- 1 block git
- 4-5 blocks of python
### Session AM2 (basic concepts, reasons why, basis for later use cases)
- shell
- git
## DAY 1
Each shorter than spring 2017, will be picked up in later sessions
### Session AM1 Intro/Lightning talks
### Session AM2 Shell
## DAY 1 PM --- Python
### Session PM1 GIT
### Session PM1 Python Intro (basic overview)
### 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)
......@@ -33,7 +32,9 @@ Each shorter than spring 2017, will be picked up in later sessions
- numpy
- read file, simple plot (or in session PM2)
### Session PM2 Python (structuring code, defensive programming, using prepared ts files)
## DAY 2 AM
### Session AM1 Python (structuring code, defensive programming, using prepared ts files)
- write function + module
- put under version control
- simple test (assert)
......@@ -43,33 +44,7 @@ Each shorter than spring 2017, will be picked up in later sessions
not covered: closures, argpars, numba
## DAY 1 PM --- R
### Session PM1 R Intro (basic intro)
- R+Rstudio+CRAN+history
- operators, vector, df, object structures (vector,df,list,other), read file, subset df
- object class (string, number, boolean, complex, etc)
- simple plot
- read help for functions
- install.packages, library + fun vs pack::fun
### Session PM2 R (overview of code structuring)
- conditions, loops, *apply
- write function (with comments for documentation)
- put under version control
- simple test (testthat)
not covered: package with structured documentation with devtools/Roxygen/sinew (but link to https://github.com/brry/course#packs)
## DAY 2 AM --- both
### Session AM1: Time series, functions, plotting
### Session AM2: Time series, functions, plotting
- reading + understanding documentation of functions
Global temperature average development 1750-2010
......@@ -81,20 +56,7 @@ http://berkeleyearth.lbl.gov/auto/Global/Raw_TAVG_complete.txt
- plot with uncertainty band
- write function (exercise!)
### Session AM2:
using shell:
- if possible: get list of available files in http://berkeleyearth.lbl.gov/auto/Regional/TAVG/Text/
- with wget: Get all textfiles (country temp development) starting with B (or with >3 consonants or whatever)
- apply function to several textfiles
Mix:
- Python: APIs: numpy, pandas, xarray
- R: Tidyverse?
- BUFFER (previous sessions potentially too full)
## DAY 2 PM --- both
## DAY 2 PM
### Session PM1: higher dimensional (spatial) data, advanced plotting + cartography, application of aquired knowledge
gridded data Europe:
......
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