vignettes/biodivMapR.Rmd
biodivMapR.RmdbiodivMapR was initially developed to produce
and
diversity maps Féret & Asner (2014) from airborne
imaging spectroscopy data acquired over tropical forests.
biodivMapR v1 used spectral transformations as initial
pre-processing step. This included reflectance normalization with a
continuum removal, followed by a spectral transformation (PCA, SPCA,
MNF…).
Input raster data fom any type of sensor can be used, as long
as the input rasters share the same footprint, spatial resolution and
projection. Starting from biodivMapR v2.0, the
workflow aims at being ‘sensor agnostic’, meaning that users can provide
any type of raster data as input, in order to produce diversity metrics
from a collection of rasters sharing the same projection, spatial
resolution and extent. The workflow described in v1 is still available,
but functions have been renamed.
The ecological relevance of the input data used with
biodivMapR is the sole responsibility of users.
While latest versions of this package provide functions to perform large
scale mapping with computational efficiency and capacity to take
advantage of cloud resources, it remains a method dedicated to research.
Existing publications provide guidelines for the production of diversity
maps. However, the ecological relevance of ‘spectral diversity’ metrics
depends on the type of input data, the parameterization of the method,
and the type of ecosystem under study. In situ observations remain
fundamental to identify the proper parameterization,
test hypotheses and produce validation for the diversity maps.
The tutorial
provided with biodivMapR describes a possible processing
workflow to take advantage of Sentinel-2 imagery. Sentinel-2 imagery is
downloaded from a STAC catalog using the package preprocS2,
which is a wrapper of the rstac
and CDSE
packages. The default STAC collection is sentinel-2-l2a
from the Planetary computer catalog.
biodivMapR v2 now allows user to run the preprocessing
step of their choice. This includes spectral indices, vegetation
biophysical variables, spectral transformation, or any type of
preprocessing dedicated to a specific sensor / sensor combination.
We provide a few examples here. Users can experiment with the method of their choice.
Definition of the processing parameters This includes the following information:
Computation of the diversity maps This includes several diversity metrics:
fundiversity
Hill_order). In
addition to Bray-Curtis dissimilarity
(bray),
diversity metrics include Bray-Curtis turnover
(brayturn), Jaccard dissimilarity
(jaccard), Jaccard turnover
(jaccardturn), Simpson dissimilarity
(simpson_diss) and Sorensen dissimilarity
(sorensen). Please refer to the R package bioregion
for the definition of these
diversity metrics