Can anyone suggest me web-links to learn scripting in GRASS GIS (its utilities, examples etc.) other than those available in GRASS official Wiki/Sites?

  • what kinds of things are you interested in doing in your scripts? are you thinking of basic scripts to automate and recall actions, or more complex programs?
    – scw
    Commented Jun 9, 2011 at 2:22
  • Currently I am thinking of implementing basic repetitive tasks like performing supervised classification on different groups/subgroups in a mapset. But I am interested to know about complex implementation scenarios as well.
    – Chethan S.
    Commented Jun 9, 2011 at 5:14
  • What kind of examples are you looking for? e.g. shell, bash, or python scripts?
    – underdark
    Commented Jun 9, 2011 at 7:13
  • I am mainly looking for shell/bash scripts. If it's important I use GRASS in Ubuntu 11.04.
    – Chethan S.
    Commented Jun 9, 2011 at 8:01

1 Answer 1


You can get some Grass shell examples on GRASS lists. Try to run a search on shell or bash script. Looking at users script online is a good approach to understand how it works.

You will find few snippets on that page and also links to references (on the bottom of the page). See also Appendix 2 of that online ressource by M. Neteler. Some others examples are also available on GRASS book.

From what I know the GRASS wiki is probably one of the best resource to learn GRASS scripting.

Not the answer you're looking for? Browse other questions tagged or ask your own question.