Tool to support the selection of an adequate satellite spatial resolution. Evaluates how the change
in spatial resolution changes the amount of samples and sample regions based on a set of coordinate pairs.
Usage
sMoveRes(xy, pixel.res)
Arguments
xy
Object of class SpatialPoints or SpatialPointsDataFrame.
pixel.res
vector of spatial resolutions (unit depends on spatial projection).
Value
A list.
Details
Given a vector of pixel resolutions (pixel.res), the function determines the number of unique pixels
and unique pixel regions after their temporal aggregation. For each spatial resolution, the function starts by converting
xy to unique pixel coordinates and labels them based on their spatial aggregation. Then, the function counts the number
of samples and sample regions. The output of the function consists of:
stats - Summary statistics reporting on the number of unique samples and sample regions per spatial resolution.
plot - Plot representing the change in number of samples and sample regions per spatial resolution.
indices - Indices for each sample in xy based on their spatial aggregation within each spatial resolution.
# NOT RUN {{
require(raster)
# read movement data data(shortMove)
# test function for 5, 10 20 and 30 m a.res <- sMoveRes(shortMove, c(5, 10, 20, 30))
}
# }