surfaceSimilarity: Compare two rasterLayer surfaces.

schoenersDR Documentation

Compare two rasterLayer surfaces.

Description

Functions to compare rasterLayers using Schoener's D-metric.

Usage

schoenersD(rast1, rast2)

schoenersProjection(rast1, rast2, abs = TRUE)

Arguments

rast1

First input rasterLayer

rast2

Second input rasterLayer

abs

Specify whether to return the absolute or relative change between rast1 and rast2

Details

The function schoenersD' calculates similarity value of two RasterLayers using Schoener's D-metric.

The function 'schoenersProjection' returns a third rasterLayer with the cell-by-cell difference between surfaces.

RasterLayers must have identical resolutions and extents. Schoener's D assumes surfaces each sum to 1.


cjcampbell/SDMetrics documentation built on Oct. 2, 2022, 10:14 a.m.