Introduction to GRASS GIS
Location: to be assigned depending on the registrations
Objective: Introduction to GRASS GIS: from history and background to statistical modules and GRASS+R
General description: The tutorial will begin with a general introduction to GRASS with a few exercises to get familiar with GRASS. Emphasis will be put on some important concepts of GRASS: locations, computational regions and vector topology. The amount of exercises will then increase from session to session, ending with GRASS – R interaction.
Required back-ground knowledge: GIS and spatial data processing, statistics.
Software / R packages required: GRASS 6.4.1, 6.4.2 or 6.5, R.
Videos of presentations are now available!
- Download binaries: winGRASS 6.4.2 snapshot full installer or LinuxGRASS 6.4.2 snapshot (64bit) installer or MacOSX-GRASS 6.4.1. installer
- Download source code: GRASS 6.4.2svn from SVN for own compilation + Compile and Install instructions
9:00–10:30 GRASS GIS Intro, getting started - Markus Neteler
Summary: GRASS history and background; GRASS database concept (GISDBase, Location, Mapset); computational region in GRASS; raster format intro and principles of raster processing; vector format intro and principles of vector processing; data import/export; raster/vector reprojection. Exercises: data import/export, computational regions for raster processing, vector topological cleaning.
10:30–11:00 Coffee break;
11:00–12:30 Overview of the functionality in GRASS, exercises with selected modules - Markus Neteler
Summary: GRASS command structure; 3D visualisation; scripting in GRASS; statistical modules for raster maps, vector maps, and combining raster and vector maps. Each part will be accompanied by exercises.
12:30–14:00 Lunch break;
14:00–15:30 Lecture cont'ed - Markus Neteler + GRASS GIS exercises - Markus Metz
Summary: GRASS - R interaction.
15:30–15:45 Coffee break;
15:45–17:00 exercises - Markus Metz
Summary: exercises continued; open analysis session.
Literature:
- Bivand, R., Pebesma, E., Rubio, V., 2008. Applied Spatial Data Analysis with R. Use R Series, Springer, Heidelberg, 378 p.
- Neteler, M., Mitasova, H., 2008. Open Source GIS: A GRASS GIS Approach, 3rd Edt. Springer, The International Series in Engineering and Computer Science: Volume 773. 406 p.
- Hall, G.B. (Ed), 2008. Open Source Approaches to Spatial Data Handling. Springer, New York. 278p.
| Attachment | Size |
|---|---|
| nc_boundary_county.tgz | 6.28 MB |
| elev_ncstate_500m_tif.zip | 1.8 MB |
| meuse.zip | 5.51 MB |
| meuse.R | 23.43 KB |
| nc_spm_08_geostat.tgz | 7.29 MB |
| meuse_scripts.zip | 1.66 KB |
| GRASS_geostat_landau_2011_intro.pdf | 4.47 MB |
| GRASS_geostat_landau_2011_exercise.pdf | 345.69 KB |
- Login to post comments
Printer-friendly version


Comments (6)
Bulk import of ASTER GDEM via command line
Put all AST*.zip files into one directory.
Then, in the GRASS GIS shell terminal, cd into this directory and run:
# unzip all files in a loop:
for map in `ls A*.zip` ; do unzip $map ; done
# import and set elevation color table
for map in `ls AST*/AST*num.tif` ; do
r.in.gdal input=$map out=`basename $map .tif` -o
r.colors `basename $map .tif` color=elevation
done
# set computational region to include all imported maps (the list of DEM names we retrieve automatically):
g.region rast=`g.mlist rast pattern="AST*"` -p
Now you can display and analyse the ASTER GDEM maps. If you want to mosaik the DEM tiles into one single map, use r.patch:
r.patch input=`g.mlist rast pattern="AST*"` output=complete_ASTER_GDEM
r.colors complete_ASTER_GDEM color=elevation
Using GDAL and OGR tools
Find here two blog pages with many examples:
for loop for bulk ASCII Grid import
Here the shell "for" loop which we used during the course:
cd /path/to/meuse/
for map in `ls *.asc` ; do r.in.gdal input=$map out=`basename $map .asc` -o ; done
To find more material about shell programming, see here: http://grass.osgeo.org/wiki/GRASS_and_Shell
Thank you for bringing more
Thank you for bringing more information to this topic for me. Im truly grateful and really impressed. Shop Vac
Using R in a GRASS Session on MS-Windows
Please check at http://grass.osgeo.org/wiki/R_statistics how to use R within a running GRASS Session on MS-Windows.
Compilation of GRASS 65 / GRASS 7 on MacOS X
Advanced users may be interested in getting the development versions of GRASS 6 (version 6.5) and GRASS 7. This is only possible if you have installed the Apple Developer Tools on your machine, and the KingChaos frameworks required for the GRASS 6 binary (http://www.kyngchaos.com/software/frameworks). Once these are installed, get the GRASS source code (http://trac.osgeo.org/grass/wiki/DownloadSource) and open a terminal window.
Source configuration can be initialized like this: (from the command line)
export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
./configure \
--without-motif --without-glw --without-odbc --without-cairo --without-readline --without-postgres \
--with-opengl=aqua --enable-sysv --with-x --with-cxx \
--with-freetype --enable-largefile --with-wxwidgets \
--prefix=/Applications --enable-macosx-app --with-macosx-archs=i386 \
--with-includes=/usr/include \
--with-libs=/usr/lib \
--with-proj-includes=/Library/Frameworks/PROJ.framework/unix/include \
--with-proj-libs=/Library/Frameworks/PROJ.framework/unix/lib \
--with-proj-share=/Library/Frameworks/PROJ.framework/Versions/4/Resources/proj \
--with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/include \
--with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/lib \
--with-png-includes=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/include \
--with-png-libs=/Library/Frameworks/UnixImageIO.framework/Versions/C/unix/lib \
--with-sqlite \
--with-sqlite-includes=/Library/Frameworks/SQLite3.framework/Versions/3/unix/include \
--with-sqlite-libs=/Library/Frameworks/SQLite3.framework/Versions/3/unix/lib
Adjust the configuration above to taylor GRASS to your needs, i.e. add postgresql support etc.