View source: R/sits_get_probs.R
sits_get_probs | R Documentation |
Given a set of lat/long locations and a probability cube, retrieve the prob values of each point.
sits_get_probs(cube, samples, window_size = NULL)
## S3 method for class 'csv'
sits_get_probs(cube, samples, window_size = NULL)
## S3 method for class 'shp'
sits_get_probs(cube, samples, window_size = NULL)
## S3 method for class 'sf'
sits_get_probs(cube, samples, window_size = NULL)
## S3 method for class 'sits'
sits_get_probs(cube, samples, window_size = NULL)
## S3 method for class 'data.frame'
sits_get_probs(cube, samples, window_size = NULL)
## Default S3 method:
sits_get_probs(cube, samples, window_size = NULL)
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) |
A tibble of with columns <longitude, latitude, values> in case no windows are requested and <longitude, latitude, neighbors> in case windows are requested
There are four ways of specifying data to be retrieved using the
samples
parameter:
(a) CSV file: a CSV file with columns longitude
, latitude
;
(b) SHP file: a shapefile in POINT geometry;
(c) sits object: A sits tibble;
(d) sf object: An link[sf]{sf}
object with POINT or geometry;
(e) data.frame: A data.frame with longitude
and latitude
.
Gilberto Camara
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.