forked from GeoScripting-WUR/PythonWeek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Slides.Rmd
105 lines (74 loc) · 3.01 KB
/
Slides.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
title: "Using Python within Linux"
author: "Jan Verbesselt"
date: "22 Jan 2015"
output: slidy_presentation
---
## Session of yesterday
* Github page is forked to the GitHub Geo-scriptin @ WUR group
* https://github.com/divisionblue/wur-python
* Presentation is available here: http://divisionblue.github.io/wur-python/
* http://geojson.org/geojson-spec.html
## Tuning the terminal
* More info: http://www.drbunsen.org/the-text-triumvirate/
* Look for the following plugins to tune your `terminal`:
* TMUX: http://tmux.sourceforge.net/
* [Powerline](http://computers.tutsplus.com/tutorials/getting-spiffy-with-powerline--cms-20740)
## Shell scripting
```{r, engine='bash', eval=FALSE}
#!/bin/bash
cd ../data
fnin="ndvi.tif"
fnout="ndvi_latlong_60.tif"
fntemp="temp.tif"
fnpng="ndvilatlong.png"
echo "resample the inputfile: $fnin"
gdalwarp -tr 60 60 -r cubic $fnin $fntemp
echo "reproject to lat/long: $fnout"
gdalwarp -t_srs EPSG:4326 $fntemp $fnout
rm $fntemp
gdal_translate -of png $fnout $fnpng
echo "The output file: $fnout"
```
A nice and complete example (works on linux):
* https://github.com/astridbos/Exercise9
## Some questions
* What do you remember from yesterday?
* Can you answer the questions that have been asked in the questionnaire this morning?
Fill in the following sheet per team:
* http://goo.gl/forms/xv7Chgkq97
## Python
Who has done the `Python` refresher?
```{r, engine='python'}
import this
```
## Today's presentation
By [Jorge Mendes de Jesus](http://www.isric.org/users/jorge-mendes-de-jesus) from ISRIC:
* Jorge is a scientifical programmer with a background in open source GIS and python development.
* [Presentation about Why Python geo-spatial things?](https://docs.google.com/presentation/d/1IkeUUArTIjQNuKLP43p-vXdazqtMaVEzlFCd2nLnrdY/edit?usp=sharing)
## A nice meeting
FOSDEM is a free and non-commercial event organised by the community for
the community. The goal is to provide open source software developers
and communities a place to meet. Participation and attendance is totally
free, though the organisers gratefully accept donations and sponsorship.
https://fosdem.org/
http://www.osgeo.org/node/1464
## Vector Excercise Lessons learned
What have you learned? Show your script!
* [Team Jennifer](https://github.com/Bart92/Day14_TeamLopez)
* [Team Raspberries](https://github.com/jiles001/ExerciseLesson14.git)
* [Scripties]
## Linux updates
* Working with Git within Linux
* solutions
- do it the same way as learned (via Rstudio)
- BUT! have a look at the error message
- git -config set username and e-mail
* File exchange from Linux to windows
* how
## A book about programming
A book chock-full of general programming advice where the term "tracer bullets" is used (tip no. 15). ["The Pragmatic Programmer: From Journeyman to Master"](http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X/ref=sr_1_1?ie=UTF8&qid=1422010953&sr=8-1&keywords=the+pragmatic+programmer)
<!---
framework: shower
highlighter: tomorrow
-->