lucC_pred_recur: Predicate Recur

Description Usage Arguments Value Author(s) Examples

View source: R/lucC_predicates_raster.R

Description

Provide a predicate RECUR which evaluates as true when a location holds a class c_i, e.g. 'Forest', during two non-continuous distinct intervals t_i and t_j. Return a matrix with values within defined interval

Usage

1
2
3
4
lucC_pred_recur (raster_obj = NULL, raster_class = NULL,
time_interval1 = c("2001-01-01", "2001-01-01"),
time_interval2 = c("2002-01-01", "2005-01-01"),
label = NULL, timeline = NULL)

Arguments

raster_obj

Raster. A raster stack with classified images

raster_class

Character. Name of the class of interest, such as 'Forest', to research

time_interval1

Interval. A first time interval to verify if class is over or not

time_interval2

Interval. A second and non-overlapped time interval to verify if class is over or not

label

Character Vector. All labels of each value of pixel from classified raster

timeline

Character. A list of all dates of classified raster, timeline

Value

Matrix with all states which holds during a time interval

Author(s)

Adeline M. Maciel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

b <- lucC_pred_recur(raster_obj = rb_sits, raster_class = "Forest",
                     time_interval1 = c("2001-09-01","2001-09-01"),
                     time_interval2 = c("2002-09-01","2016-09-01"),
                     label = label, timeline = timeline))
b


## End(Not run)

ammaciel/sits.LUC.Calculus documentation built on May 3, 2019, 9:36 p.m.