• ← 4.1. Introduction
  • 5.1. Starting python, command line and programming mode →

5. Programming with PythonΒΆ

Download this website as pdf.

Download this website as epub (for e-readers).

To subscribe to our courses visit http://www.pcraster.eu

  • 5.1. Starting python, command line and programming mode
    • 5.1.1. Starting up Python, the command line
    • 5.1.2. Executing Python scripts
  • 5.2. Variables, expressions and statements
    • 5.2.1. Values and Types
    • 5.2.2. Order of operations
    • 5.2.3. Operations on strings and composition
  • 5.3. Functions
    • 5.3.1. Keyboard input, types of variables and type conversion
    • 5.3.2. Math functions
  • 5.4. Conditionals and recursion
    • 5.4.1. Boolean expressions: comparison operators
    • 5.4.2. Logical operators
    • 5.4.3. Conditional execution
  • 5.5. Fruitful functions
    • 5.5.1. Adding new functions
  • 5.6. Iteration
    • 5.6.1. The while statement, creating a table (part 1)
    • 5.6.2. The while statement, creating a table (part 2)
  • 5.7. Strings
    • 5.7.1. Length of strings, string slices
    • 5.7.2. String traversal (part 1)
    • 5.7.3. String traversal (part 2), string methods
  • 5.8. Lists
    • 5.8.1. Accessing elements, lists and for loops
    • 5.8.2. List deletion
    • 5.8.3. Matrices and gridded maps
    • 5.8.4. Strings and lists
  • 5.9. Files
    • 5.9.1. Writing variables to a text file
    • 5.9.2. Reading from a text file
 
  • ← 4.1. Introduction
  • 5.1. Starting python, command line and programming mode →

Table of Contents

  • 1. Map Algebra
  • 2. Dynamic Modelling
  • 3. Stochastic Modelling
  • 4. Data Pre-Processing with GDAL
  • 5. Programming with Python
  • 6. Calibration

Quick search

©2010-2023, PCRaster Research and Development Team.