spatial_pmax {eseis} | R Documentation |
Get most likely source location
Description
The function identifies the location of a seismic source with the heighest likelihood (P_max).
Usage
spatial_pmax(data)
Arguments
data |
|
Value
data.frame
, coordinates (x and y) of the most likely s
ource location(s).
Author(s)
Michael Dietze
Examples
## create example source location likelihood raster
x <- terra::rast(nrows = 100, ncols = 100,
xmin = 0, xmax = 10,
ymin = 0, ymax = 10)
terra::values(x) <- runif(n = 100)
## identify location of highest likelihood
p_max <- spatial_pmax(data = x)
## show result
print(p_max)
[Package eseis version 0.7.3 Index]