Amazon – health data

This tutorial reads the pixel based deforestation data for the Amazon region and computes the area weighted deforestation per municipality. This data is linked with data provided by IBGE reporting the number of deaths for a set of given reasons for several years. To avoid distortions of these numbers due to the different population sizes, the population weighted average is calculated and used to compute correlation values.

The data has been composed as linked data by Jim Jones (jim.jones@uni-muenster.de), the R-script is provided by Benedikt Gräler (ben.graeler@uni-muenster.de).

The deforestation data is provided pixel based as DEFOR_YEAR. Additionally, the area overlap between pixels and municipalities is provided as triples. This allows to compute the area deforested per municipality within the SPARQL-query as follows:

Note, that the variable “?aka” is necessary as the municipalities’ identifiers change between a six and seven digit code depending on the data source. The relation is modeled as an “sameAs”. The structure of the retrieved data can be investigated with:

To be able to treat the data easily, we construct a Spatio-Temporal Full Data Frame (STFDF) from the package “spacetime”, add the municipalities names and the deforestation values for the provided years: