Difference between revisions of "From GRASS GIS novice to power user (workshop at FOSS4G Boston 2017)"

From GRASS-Wiki
Jump to navigation Jump to search
Line 11: Line 11:

=== Software ===
=== Software ===
GRASS GIS 7.2 compiled with libLAS is needed (e.g. {{cmd|r.in.lidar}} should work).

Line 43: Line 41:

Note that currently (summer 2017) {{cmd|r.in.lidar}} is often not accessible on Mac OS, use {{cmd|r.in.ascii}} in combination with libLAS or PDAL command line tools to achieve the same. Note also that the 3D view may not be accessible.
Note that the 3D view may not be accessible.

=== Data ===
=== Data ===

Revision as of 16:53, 18 July 2017

Foss4g boston 2017 logo.png
Grassgis logo colorlogo text whitebg.png

Description: Do you want to use GRASS GIS, but never understood what that location and mapset are? Do you struggle with the computational region? Or perhaps you used GRASS GIS already but you wonder what g.region -a does? Maybe you were never comfortable with GRASS command line? In this workshop, we will explain and practice all these functions and answer questions more advanced users may have. We will help you decide when to use graphical user interface and when to use the power of command line. We will go through simple examples of vector, raster, and image processing functionality and we will try couple of new and old tools such as vector network analysis or image segmentation which might be the reason you want to use GRASS GIS. We aim this workshop at absolute beginners without prior knowledge of GRASS GIS, but we hope it can be useful also to current users looking for deeper understanding of basic concepts or the curious ones who want to try the latest additions to GRASS GIS.

Format and requirements: Participants should bring their laptops with GRASS GIS 7. Beginners are encouraged to try using the latest OSGeo-Live virtual machine. There are no special requirements. Just have your laptop with GRASS GIS or OSGeo-Live virtual machine with you.

Authors: Anna Petrasova from North Carolina State University (NCSU), Giuseppe Amatulli from Yale University, and Vaclav Petras from NCSU




All needed software is included.


Install GRASS GIS from packages:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install grass


For other Linux distributions other then Ubuntu, please try to find GRASS GIS in their package managers.

MS Windows

Download the standalone GRASS GIS binaries from grass.osgeo.org.

Mac OS

Install GRASS GIS using Homebrew osgeo4mac:

brew tap osgeo/osgeo4mac
brew install grass7

Note that the 3D view may not be accessible.


Introduction to the GRASS folder structure and environment

Introduction to graphical user interface and command line

GRASS working environment and working directory

Create location and mapset (from GUI and from command line)

Setting the study area extent and pixel size to make the computation correct and efficient

Move data to and from GRASS database

Move data between locations and mapsets

Perform basic raster and vector operations

Try out some of the more advanced and latest features

Network analysis


i.segment, i.superpixels.slic

Next steps and alternative workflows can involve: i.segment.hierarchical, i.segment.uspo and i.segment.stats.


Running processes in command line on HPC

grass7 -c path/to/database/location/mapset
grass7 path/to/database/location/mapset --exec script.py params
rm path/to/database/location/mapset