sMoveRes: sMoveRes

Description Usage Arguments Details Value See Also Examples

View source: R/sMoveRes.R

Description

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

1
sMoveRes(x, y)

Arguments

x

Object of class SpatialPoints or SpatialPointsDataFrame.

y

vector of spatial resolutions (unit depends on spatial projection).

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:

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.

Value

A list.

See Also

tMoveRes specVar

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{

 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))

}

RRemelgado/rsMove documentation built on June 7, 2020, 5:12 p.m.