Learn R Programming

sits (version 1.5.2)

sits_get_probs: Get values from probability maps

Description

Given a set of lat/long locations and a probability cube, retrieve the prob values of each point.

Usage

sits_get_probs(cube, samples, window_size = NULL)

# S3 method for csv sits_get_probs(cube, samples, window_size = NULL)

# S3 method for shp sits_get_probs(cube, samples, window_size = NULL)

# S3 method for sf sits_get_probs(cube, samples, window_size = NULL)

# S3 method for sits sits_get_probs(cube, samples, window_size = NULL)

# S3 method for data.frame sits_get_probs(cube, samples, window_size = NULL)

# S3 method for default sits_get_probs(cube, samples, window_size = NULL)

Value

A tibble of with columns <longitude, latitude, values> in case no windows are requested and <longitude, latitude, neighbors> in case windows are requested

Arguments

cube

Probability data cube from where data is to be retrieved. (class "class_cube").

samples

Location of the samples to be retrieved. Either a tibble of class "sits", an "sf" object, the name of a shapefile or csv file, or a data.frame with columns "longitude" and "latitude"

window_size

Size of window around pixel (optional)

Author

Gilberto Camara