All functions |
|
|---|---|
This function computes interquartile range (IQR) for a SpatRaster |
|
This function computes interquartile range (IQR) criterion, which can be used as a criterion for outlier detection outlier_range_iqr <- c(range_IQR$1]- weightIQR x iqr, range_IQR(2)+ weightIQR x iqr) with range_IQR(1) the first quartile and range_IQR(2) the third quartile |
|
compute alpha metrics from list of spectral species distributions in the context of sequential feature selection |
|
apply alphabeta_window to a list of lists |
|
compute alpha and beta diversity metrics from pixel data corresponding to spectral species extracted from a window |
|
compute alpha and beta diversity metrics from pixel data corresponding to spectral species extracted from a window |
|
apply alphabeta_window to a list of lists |
|
compute alpha and beta diversity metrics from pixel data corresponding to spectral species extracted from a window |
|
This function performs big raster processing It requires user to write a function expecting vectors / matrices / dataframes corresponding to raster data read sequentially, a list of input files, a list of output files, and it is good to go. |
|
prepares data into list to apply continuum removal |
|
apply kmeans to information extracted from an image and corresponding to a window |
|
compute spectral species from a raster |
|
apply biodivMapR to a set of plots identified by a field 'id' produced with preprocS2 function get_s2_tiling |
|
converts a bbox to a polygon |
|
compute beta metrics during sfs |
|
computes diversity metrics from raster |
|
apply biodivMapR (computes clusters + diversity metrics) to an image chunk |
|
computes diversity metrics from a classification raster containing information on a specific class for each pixel |
|
apply biodivMapR on a test set for different numbers of clusters |
|
sample pixels and plots to produce alpha and beta models, including clustering, dissimilarity & PCoA |
|
computes diversity metrics from raster corresponding to SDM |
|
performs SFS to identify combination of input variables maximizing a criterion |
|
computes diversity metrics from raster |
|
computes diversity metrics from a set of raster corresponding to tiles as produced with preprocS2 |
|
Compute Bray-Curtis Dissimilarity |
|
Compute Bray-Curtis Turnover |
|
center and reduce data matrix based on known mean and SD |
|
Checks if the data to be processed has the format type expected |
|
cleans dataframe from NAs and Inf values |
|
exclude .aux.xml and .tfw files from a list of files including .tif extension |
|
compute the nearest neighbors among kernels |
|
compute dissimilarity matrix corresponding to two distinct matrices, each of them including a list of samples (rows) defined by their spectral species (columns) metrics available: bray, brayturn, simpson_diss, jaccard, jaccardturn, sorensen |
|
compute mask based on interquartile range criterion applied on input rasters |
|
computes a mask for a collection of tiles based on interquartile range filtering interquartile is computed for all data included in teh collection samples out of a range defined by quartile_1-weightIQR x (quartile_3 - quartile_1) and quartile_3+weightIQR x (quartile_3-quartile_1) are then considered as outliers |
|
Continuum Removal |
|
Computes continuum removal for matrix shaped data: more efficient than processing individual spectra the convex hull is based on the computation of the derivative between R at a given spectral band and R at the following bands |
|
computes continuum removal for individual spectra |
|
crop border of a spatRaster |
|
define a grid over a raster |
|
defines the number of pixels per iteration |
|
Deprecated functions in biodivMapR |
|
define water vapor bands based on spectral sampling of original image |
|
explore performances for a range of cluster number |
|
explore disimilarity metrics for a range of number of clusters |
|
Compute kmeans from random subset of pixels extracted from an image and a list of values for k |
|
extract informaton from raster to prepare for SFS |
|
extract pixel information from a raster based on SpatVectorCollection |
|
extract pixel information from a raster based on vector footprint |
|
compute functional metrics during sfs |
|
Re-implementation of |
|
checks if files produced from explore_cluster_range exist |
|
checks if files produced from biodivMapR_opt_cluster exist |
|
Filter data prior to continuum removal:
|
|
compute functional diversity metrics from pixel data corresponding to features extracted from a window |
|
apply functional_window to a list of lists |
|
get hdr name from image file name |
|
computes hill number from a distribution The Hill numbers quantify biodiversity. The importance of the abundance distribution increases with increasing Hill order. For q=0, the Hill number is the richness, for q=1, it is the exponential Shannon entropy and for q=2, it is the inverse Simpson index. Note that the Hill order can also be a fraction, e.g. 0.5. |
|
computes shannon index from a distribution (faster than version implemented in vegan package) |
|
computes Simpson index from a distribution |
|
computes alpha diversity metrics from ssd_mat corresponding to iterations |
|
computes alpha diversity metrics from ssd |
|
This function gets path from an asset in the JSON file |
|
Computes beta diversity for a list of spectral species distributions |
|
get cluster list for biodivMapR_opt_clusters |
|
gets acquisition date from S2 image |
|
computes diversity metrics from validation plots |
|
computes diversity metrics from validation plots |
|
get functional diversity metrics from dataframe This function was inspired from FD package |
|
gets rank of spectral bands in an image |
|
get input chunk data from a list of rasters |
|
computes k-means from nb_iter subsets defined from rast_sample |
|
get spectral species distribution for all clusters including those with 0 abundance |
|
get spectral species distribution from a list for all clusters including those with 0 abundance |
|
get spectral species distribution for all clusters including those with 0 abundance |
|
get a list of plots defined in a vector file defined as input |
|
get samples for beta diversity mapping |
|
Computes diversity metrics from raster data |
|
Computes diversity metrics from raster data based on moving window |
|
Computes diversity metrics from raster data |
|
gets raster extent |
|
extracts samples defined by a vector layer from a raster |
|
get samples for alpha diversity mapping |
|
computes spectral indices over a spatial extent from a raster |
|
compute spectral species from inputdata |
|
get samples from tiles produced with preprocS2 function get_s2_tiling in order to produce stats |
|
eliminate windows with insufficient sunlit pixels |
|
get valid pixels from a list of plots produced with preprocS2 function get_s2_tiling (notNA) |
|
get valid pixels from list of tiles |
|
get xy of pixels to sample from raster |
|
Harmonize ENVI header file |
|
initialize PCoA for beta diversity mapping |
|
initialize PCoA for beta diversity mapping based on samples extracted from images |
|
Compute kmeans from random subset of pixels extracted from an image |
|
Compute kmeans from random subset of pixels extracted from an image |
|
Compute Jaccard Dissimilarity |
|
Compute Jaccard Turnover |
|
computes kmeans for an iteration in biodivMapR |
|
applies progression bar flr kmeans clustering |
|
redefined chunks based on the max number of rows per chunk |
|
define variable maximizing a criterion |
|
Convert from meters to degrees correcting for global position borrowed from https://github.com/mlammens/occUncertain |
|
Function to perform MNF |
|
mosaic tiles defined in vrt and compress if possible |
|
produce a mosaic from a series of tiles |
|
adjusts number of rows from chunks |
|
gets noise |
|
converts numeric value to characters with specific lengths, adding 0 at beginning |
|
performs PCA on matrix X |
|
computes PCoA using the cmdscale function original source: package labdsv https://rdrr.io/cran/labdsv/src/R/pco.R |
|
Performs PCA for all images and create PCA file with either all or a selection of PCs |
|
prints an error message if problems occur |
|
design a matrix with window ID based on an original raster and window size in pixels |
|
Performs radiometric filtering based on three criteria: NDVI, NIR reflectance, Blue reflectance |
|
Performs radiometric filtering based on three criteria: NDVI, NIR reflectance, Blue reflectance |
|
performs random permutation for k samples among the vector defined by a |
|
extract informaton from raster to prepare for SFS |
|
Reads ENVI hdr file |
|
R equivalent of repmat (matlab) |
|
remove constant bands |
|
get max index for each row and convert into linear index |
|
apply biodivMapR to an individual set of rasters (one site) |
|
apply biodivMapR to a set of plots identified by a field 'id' produced with preprocS2 function get_s2_tiling |
|
sample exact number of pixels from a raster |
|
get samples for alpha and beta diversity mapping |
|
get samples for alpha diversity mapping |
|
get samples for beta diversity mapping |
|
sample pixels or plots from raster data |
|
sample set of pixels defined by row and col from raster data |
|
sample pixels or plots from raster data |
|
sample pixels from raster data |
|
save diversity maps as raster data |
|
save diversity maps as raster data once moving window process done |
|
save diversity maps as raster data |
|
produces a figure summarizing alpha and beta diversity on scatterplots |
|
set options |
|
Compute Simpson Dissimilarity |
|
Compute Sorensen Dissimilarity |
|
computes diversity metrics from raster |
|
computes spectral species from raster |
|
get spectral species corresponding to polygons in a SpatVector object |
|
get spectral species corresponding to raster sample extracted with extract |
|
split chunk into subsets to prepare for parallel processing |
|
split information from a line |
|
update mask based on IQR for a series of rasters produced with preprocS2 function get_s2_tiling |
|
Compute weighted coordinates of a spatial unit based on nearest neighbors used during PCoA |
|
identifies which alpha/beta metrics should be used for next processes |
|
this function aims at applying PCA on a raster or list of rasters in combination with the function apply_bigRaster |
|
writes ENVI hdr file |
|