Skip to contents

Applies an empirical cumulative distribution function (ECDF) to raster values, returning a raster where each cell reflects its percentile rank.

Usage

rasterCdf(x)

Arguments

x

A SpatRaster object (e.g., from walksToRaster or velocityToRaster).

Value

A SpatRaster of the same extent and resolution with values between 0 and 1.

Examples

if (FALSE) { # \dontrun{
percentile_raster <- rasterCdf(runout_raster)
} # }