lucC_raster_update: Update a RasterBrick with pixel replaced

Description Usage Arguments Value Author(s) Examples

View source: R/lucC_update_raster.R

Description

Update a RasterBrick with new values of pixel discovered from LUC Calculus formalism

Usage

1
2
lucC_raster_update(raster_obj = NULL, data_mtx = NULL,
timeline = NULL, class_to_replace = NULL, new_pixel_value = 20)

Arguments

raster_obj

Raster. A raster stack with classified images

data_mtx

Matrix. A matrix with values obtained from predicates RECUR, EVOLVE, CONVERT or HOLDS

timeline

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

class_to_replace

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

new_pixel_value

Integer. New pixel value to raster. Default is 20

Value

Matrix with raster and new pixel to create a RasterBrick reclassified

Author(s)

Adeline M. Maciel

Examples

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

rb_new <- lucC_raster_update(raster_obj = rb_sits, data_mtx = third_raster.df,
timeline = timeline, class_to_replace = "Forest", new_pixel_value = 6)
rb_new


## End(Not run)

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