Computer Programming in Hydrology
| Lecturer (assistant) |
Faizan Anwar [L]
|
|---|---|
| Number | 0000002813 |
| Type | lecture with integrated exercises |
| Duration | 2 SWS |
| Term | Summer semester 2026 |
| Language of instruction | English |
| Position within curricula | See TUMonline |
| Dates | See TUMonline |
Admission information
See TUMonline
Note: None
Note: None
Description
1. Introduction to programming using Python
2. Various built-in objects in Python
3. if/elif/else and for and while loops
4. Function and Classes
5. Introduction to the de-facto libraries
6. Processing input data
7. From problem to computer code
8. Writing a model
9. Debugging
10. Analyzing model outputs via statistics and plotting
11. Writing robust computer code
2. Various built-in objects in Python
3. if/elif/else and for and while loops
4. Function and Classes
5. Introduction to the de-facto libraries
6. Processing input data
7. From problem to computer code
8. Writing a model
9. Debugging
10. Analyzing model outputs via statistics and plotting
11. Writing robust computer code
Prerequisites
None.
Teaching and learning methods
The module consists of lectures with integrated exercises. The students are encouraged to bring their own laptops. Portable open-source software will be made available to all.
As the aim is to translate thoughts into computer code, different concepts and objects are introduced first with an example. The students are then asked to solve a small problem that demonstrates a use case in each lecture. Hands-on help is provided. Effective use of an Integrated Development Environment (IDE) is demonstrated.
Various problems in hydrology are described. The students are then taught how to break down a complex task in to small chunks that are then prepared in a form that is suitable for a computer. As homework, students are given problems to solve either by themselves and/or in groups. Finally, the students write a report where they demonstrate their ability to understand a given situation and provide the solution in the form of a running computer code that takes input data, models it, analyzes the model outputs and summarizes them in the form of statistics and graphs.
As the aim is to translate thoughts into computer code, different concepts and objects are introduced first with an example. The students are then asked to solve a small problem that demonstrates a use case in each lecture. Hands-on help is provided. Effective use of an Integrated Development Environment (IDE) is demonstrated.
Various problems in hydrology are described. The students are then taught how to break down a complex task in to small chunks that are then prepared in a form that is suitable for a computer. As homework, students are given problems to solve either by themselves and/or in groups. Finally, the students write a report where they demonstrate their ability to understand a given situation and provide the solution in the form of a running computer code that takes input data, models it, analyzes the model outputs and summarizes them in the form of statistics and graphs.