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(x, y)
Arguments
x
Object of class SpatialPoints or SpatialPointsDataFrame.
y
vector of spatial resolutions (unit depends on spatial projection).
Value
A list.
Details
Given a vector of pixel resolutions (y), 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
x 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.
If x is a move or a moveStack object, the function will iterate through each unique dataset name and return
a nested output where the elements of of the list are named in accordance with the oataset names.
# 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))
}
# }