Open source tools

Introduction

Most of the tools we use are open source. In part because I believe that the use of open source software and open data contributes towards a more transparent, rapid and inclusive science, especially in ecology, biogeography and conservation sciences. But also because open source tools such as R, GRASS GIS and QGIS are amongst the best tools available today. And thanks to the extensive documentation and the incredible support offered by the developer and user communities, it is possible to relatively quickly build simple tools yourself. I have created a few tools in the past years, which I am glad to share below.

GRASS addons

The GRASS addons I have created or contributed to are listed below. For installation you should preferably use the extension manager (g.extention or via GUI). If that doesn’t work, see the download link (and see here for installation instructions). For the full list of addons available for GRASS GIS, see here.

r.mess

A GRASS GIS addon to computes multivariate environmental similarity surface (MES) and some additional supporting layers. manual page

r.meb

Compution of the multivariate environmental bias, which compares the medium environmental conditions in an area (e.g., a country) to those in a subset of that area N (e.g., the protected areas in that country). It thus provides a measure to estimate how well conditions in the subset of an area represents conditions in the whole area,or the other way around, how biased the distribution of the subset is in environmental space. manual page

r.exdet

Detection and quantification of novel uni- and multi-variate environments following methods developed by Mesgaran et al. (2014). manual page

r.series.diversity

Computes diversity indices based on 2 or more input layers representing species (or other categories being used). Indices currently implemented are the Renyi entropy index and a number of specialized cases of the Renyi enthropy, viz.the species richness, the Shannon index, the Shannon based effective number of species (ENS), the Simpson index (inverse and gini variants), and pielou’s eveness. manual page

r.niche.similarity

The function computes two metrics to quantify niche similarity or overlap between all pairs of input raster layers: (D) the niche equivalency or similarity for two species following Warren et al. (2009) based on Schoeners D (Schoener, 1968). manual page

r.vif

Function to compute the variance inflation factor (VIF) and the square root of the VIF. The variable with the highest VIF will be dropped and the VIF will be recomputed. This will be repeated till an user-defined VIF threshold value is reached. manual page

r.out.legend

Create and export image file with legend of a raster map.manual page

r.random.weight

Generates a raster layer with a weighted random selection of the raster cells (selected cells are assigned a value 1, other a value 0) based on a user defined weight raster layer. manual page

r.recode.attr

Reclass/recode a raster layer based on values in a csv table. manual page

v.what.rastlabel

GRASS GIS addon (available on github) to uploads raster values and labels at positions of vector points to the vector attribute table. manual page

r.category.trim

Export categories and corresponding colors as QGIS colour file or csv file. Non-existing categories and their colour definitions will be removed. manual page

r.maxent.lambdas

Compute raw and/or logistic prediction maps from a lambdas file produced with MaxEnt 3.3.3e. manual page

v.maxent.swd

Export raster values at given point locations as text file in SWD format for input in Maxent. manual page

r.edm.eval

Evaluate how well a modeled probability distribution predicts an observed distribution using all or restricted set of background / absence points. manual page

R/GRASS scripts

Combining the power of GRASS GIS, which excels in handling and analysis of spatial data, and the vast number of functions for (spatial) data visualization and analysis in R (see R Spatial View) and you have a winner at hand. Below an example of a R script that garners the strength of both tools. It uses GRASS GIS in the background for the data crunching and R for the graphical output.

r.eval.strip

R function to create a response plot to evaluate the relationship between environmental variables and the fitted probability of occurrence of individual or ensemble suitability modelling algorithms. on github

GIS styles

Spatial data layers often come with standard legend / colour keys, which provides the visualization and even meaning to the data. As a side note, try to avoid the latter! Unfortunately, they are often shared in proprietary format which cannot be used in other programs and are not human readable. To avoid vendor lock in and to enable everybody to use it is therefore preferable to share color and legend keys in an open format that is also human readable (i.e., text based files). See this github page for some examples.

ZIM-wiki export templates

Zim-wiki is a graphical text editor to notes in the form of wiki pages. A great feature of Zim-wiki is that you can easily export the notebook (or part of it) as a website. You can thereby use export templates to determine how the webpages will look like. Below you can find export templates that you can use for your own websites.

Ecodiv-responsive

Template to export your Zim notebook as a responsive/adaptive website that can be viewed in desktop and mobile devices alike. We use this template ourself for the Vegetationmap4africa website and for our tutorials.Github page

Ecodiv-mobile

Template to export your Zim notebook as a website with mobile theme. Build with jquerymobile to create a website with a focus on mobile devices, but which will also look good on the desktop. The template offers some pointers to customize the design to fit the users need. Github page

Paulo van Breugel
Paulo van Breugel
Lecturer & researcher

My interests range from biodiversity and ecology to spatial data analysis. I am also what one could describe as a lifelong learner; I enjoy to learn new things and widen my horizon, both professionally and personally.

Next
Previous