This package has been archived. Please use the mapme.biodiversity package instead which offers even more biodiversity-related indicators.
The mapme.forest package helps understanding recent and past deforestation dynamics around the world. Next to calculating areal statistics about the amount of deforestation in a given space, the tool provides you with the ability to calculate a high number of common fragmentation statistics of a given landscape.
The tutorial for the usage of the mapme.forest package can be found here. Please visit this page in order to get to know the API of mapme.forest.
The mapme.forest package can then be installed by using the remotes
package by entering the following command:
remotes::install_github("mapme-initiative/mapme.forest")
.
Additionally, we ship this package with a Dockerfile which can be used
to run the packages and its dependencies as a container. When cd
ing
into the repository, building and running the image is as simple as:
docker build -t mapmeForest:latest .
docker run -d -p 8787:8787 -e USER=myuser -e PASSWORD=mypassword gans-deforestation
In our installation instruction we assume that you are going to use R Studio as an IDE. You need to have some software pre-installed software to be able to install the forestIndicator package.
remotes::install_github("mapme-initiative/mapme.forest")
and close
R Studio afterwardsNow the package has been sucessfully installed, however, you are not necessarily 100% ready to use it. Since some of the function use gdal system calls we additionally need a valid gdal installation on your machine.
go to https://trac.osgeo.org/osgeo4w/ and download the osgeo4w.exe and run it
chose advanced installation and follow the instructions. In the follwing we assume you choose the standard installation path. If you chose a custom installation path adjust the next inputs accordingly.
When you are asked which software to install open up the Commandline_Utilities branch and chose the following:
At the Libs branch chose the following package:
Once the installation is completed you have to add some environment variables so that Windows know where to look for the programs.
open: System Controls -> System and Safety -> System -> Advanced Settings -> Environment Variables -> System Variables
edit the PATH variable and add these three entries:
then add four new variables with the following scheme:
open up a command line and enter: gdal_calc.py When you are getting some information on how to use this script you are ready to go
note that the setup outlined above might not be your preffered setup. Of course you can use different setups, e.g. by using virtual anaconda environments. However, this would be fairly advanced setups so we do not outline them here. The important take-away message four you when you are going to use a different setup is that gdal_calc.py as well as the usual gdal command line tools need to be available and executable.