Unit 10 - Python intro

Python programming/scripting language is very popular in the field of GIS and a science in general. Python is also the main scripting platform for Esri product (see arcpy package). GRASS is not an exception. In reality, many GRASS modules are simple Python scripts, eg. r.mask (see Source Code section).

GRASS Python environment includes various libraries, see GRASS documentation for details. We will focus on three main libraries related to this workshop:

Let’s do our first steps from “safe” GRASS GUI environment which we already know. Switch in Layer Manager to Python tab.