Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 Jun 9 '11 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. Jun 9 '11 at 5:14
What kind of examples are you looking for? e.g. shell, bash, or python scripts? – underdark Jun 9 '11 at 7:13
I am mainly looking for shell/bash scripts. If it's important I use GRASS in Ubuntu 11.04. – Chethan S. Jun 9 '11 at 8:01
up vote 3 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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