GRASS GIS is a leading software in analysis of geodata, it offers more than 400 modules in its core version plus many addons (i.e., user contributed modules). But what if the tool you are looking for is not present in GRASS GIS? So, simply create your own, we will show you how to do that in this workshop. In GRASS GIS 7, Python is the default language for creating addons. There are two main Python libraries included in GRASS GIS. Python Scripting Library allows you to perform analysis and compute new data by chaining existing modules to create your own workflow. With PyGRASS library wrapping the C functions, you can create new data sets (vector and raster) directly through Python calls, increasing considerably the power and performance of your scripts. You can conveniently mix both GRASS Python libraries with other Python libraries like NumPy, or SciPy. In this workshop, we will guide you through the basic steps of writing your own Python scripts, starting with calling and chaining GRASS GIS modules, followed by a more pythonic experience when using PyGRASS to access and modify your data directly. You will then upgrade your script into an addon by defining a simple interface to enable automatically generated GUI. The next part of workshop will look into more advanced usage of GRASS GIS 7 capabilities, including Python spatio-temporal API to handle time series in your addons, creating your own toolbox with your newly developed addons and finally, introducing the new testing framework you should use as a responsible person to make sure your addons are in great shape.
|Citation:||Zambelli, P.; Neteler, M.; Delucchi, L.; Petras, V.; Petrasova, A. (2015). How to write a Python GRASS GIS 7 addon. In: FOSS4G-Europe, July 14th – 17th 2015, Como, Italy. url: http://europe.foss4g.org/2015/Workshops handle: http://hdl.handle.net/10449/36342|
|Organization unit:||Biodiversity and Molecular Ecology Department # CRI_2011-JAN2016|
|Authors:||Zambelli, P.; Neteler, M.; Delucchi, L.; Petras, V.; Petrasova, A.|
|Title:||How to write a Python GRASS GIS 7 addon|
|Scientific Disciplinary Area:||Settore GEO/04 - Geografia Fisica E Geomorfologia|
|Nature of content:||Other|
|Appears in Collections:||03 - Conference object|