rsMove (version 0.2.1)

tMoveRes: tMoveRes

Description

Provides historical information on cloud cover.

Usage

tMoveRes(xy = xy, o.time = o.time, t.res = t.res, s.res = s.res)

Arguments

xy

Object of class SpatialPoints or SpatialPointsDataFrame.

o.time

Object of class Date, POSIXlt or POSIXct with xy observation dates.

t.res

Temporal resolution.

s.res

Spatial resolution.

Value

A list.

Details

Given a vector of temporal resolutions (t.res), the function determines the number of unique pixels and unique pixel groups after their temporal agggation. The function returns the corresponding pixel indices per resolution showing which samples would be grouped ($indices). The function returns a data frame ($stats) and a plot ($plot) with the statistics per temporal resolution.

See Also

sMoveRes specVar

Examples

Run this code
# NOT RUN {
 require(raster)

 # read raster data
 r <- raster(system.file('extdata', 'tcb_1.tif', package="rsMove"))

 # read movement data
 moveData <- read.csv(system.file('extdata', 'konstanz_20130804.csv', package="rsMove"))
 moveData <- SpatialPointsDataFrame(moveData[,1:2], moveData, proj4string=crs(r))

 # test function for 5, 10 20 and 30 m
 a.res <- tMoveRes(xy=moveData, dpath='.')

# }

Run the code above in your browser using DataLab