- GRASS shell scripts. Example
- GRASS Python Scripting Library. Example
- PyGRASS. Examples: basic serial and parallel with GridModule
- In these examples temporary location is used, in many cases it is better to use permanend GRASS mapset and location. If using temporary location with bigger datasets, use compute nodes with local NMVE disk, which have more temporary space available or set TMPDIR to be a folder in scratch (
export TMPDIR=/scratch/project_200xxxx/grass/tmp
).
Python Scripting suits simpler cases when chaining existing tools is enough, PyGRASS enables data access from Python. See GRASS page in CSC Docs, for addtional external references.