B BGU course 2025
Last updated: 2026-02-12 16:04:44
B.1 Course aims
- General knowledge in programming
- Overview of spatial data processing and analysis in R
B.2 Course details
- Course number: 128.1.0043
- Time: Sunday 16:10-19:00
- Place: Building 72, room 249
- Instructor: Michael Dorman (dorman@post.bgu.ac.il)
- Grading: 5 exercises (50%) + exam (50%)
- Requirements:
- Basic knowledge of GIS (e.g., “Intro to GIS” course)
- Self study
- Getting help:
- Forum on Moodle (https://moodle.bgu.ac.il/)
- Meetings (schedule by e-mail)
B.3 Lecture plan
| Lesson | Date | Chapter | Exercise |
|---|---|---|---|
| 01 | The R environment (1) | ||
| 02 | Vectors (2) | Exercise 1 (C) | |
| 03 | Time series and function definitions (3) | ||
| 04 | Tables, conditionals and loops (4) | Exercise 2 (D) | |
| 05 | Matrices and rasters (5) | ||
| 06 | Raster processing (6) | Exercise 3 (E) | |
| 07 | Vector layers (7) | ||
| 08 | Geometric operations with vector layers (8) | Exercise 4 (F) | |
| 09 | Geometric operations with rasters (9) | ||
| 10 | Combining rasters and vector layers (10) | Exercise 5 (G) | |
| 11 | Processing spatio-temporal data (11) | ||
| 12 | Spatial interpolation of point data (12) | ||
| 13 | Exam questions (H) |
B.4 Exercise submission dates
| Exercise | Date |
|---|---|
| Exercise 1 (C) | |
| Exercise 2 (D) | |
| Exercise 3 (E) | |
| Exercise 4 (F) | |
| Exercise 5 (G) |
B.5 Exercise instructions
B.5.1 Guidelines
- Submission is through Moodle only
- The submission should be a single R code file
- File name is your last name + exercise number, in English, such as
dorman_01.R - The code needs to run as is, assuming that:
- All required packages are installed
- All data files are in a directory named
data
- All file paths in your submission should be of the form
'data/FILE.XYZ', for example:'data/rainfall.csv'! - Do not include
install.packagesexpressions - Do not include
setwdexpressions - Do include
libraryexpressions - Do not write any files on disk as part of the code
- Self-check:
- Start a new R session
- Manually set the working directory to where the data files are
- Run the entire script
- Late submission up to -20%, and additional -10% per week, unless coordinated in advance
- The “I thought the exercise was uploaded on moodle but turns out it wasn’t due to technical issue” excuse will not be accepted. If you aren’t sure that I got your exercise, please send me an e-mail saying “is my exercise correctly uploaded on moodle?” and I’ll be happy to check and get back to you.
- The code file should include the exercise number, your first name and last name (as comments), and mark the relevant code sections for each question (using comments). The necessary
libraryexpressions can be placed at the beginning of the script. For example:
B.5.2 Generality
- The code needs to be as general as possible:
- Do not use specific values except the ones given in the question
- When there are intermediate results—assign them to a variable and use the variable, not the value
- Question: what is the last value of
c(5,3,1,7,2,3,2,6)? - Good solution:
- Bad solution: