wpSetValueWhichindexes: wpSetValueWhichindexes set pixels with value based on indexes

Description Usage Arguments Value Examples

Description

wpSetValueWhichindexes set pixels with value based on indexes

Usage

1
2
3
wpSetValueWhichindexes(x, y, v, filename = rasterTmpFile(), NAflag = NULL,
  datatype = NULL, overwrite = TRUE, cores = NULL, minblk = NULL,
  cblk = NULL, silent = TRUE)

Arguments

x

Raster* object

y

indexes of the pixels to be replace with value v

v

value of the pixel we would like to get indexes

filename

File of a new raster file.

NAflag

NO data value will be used for a new raster

datatype

Type of raster. Avalible are INT1S/INT2S/INT4S/FLT4S/LOG1S/INT1U/INT2U/INT4U/FLT8S

overwrite

Overwrite existing file

cores

Integer. Number of cores for parallel calculation

minblk

Integer. Minimum number of blocks. If NULL then it will be calculated automaticly

cblk

Integer. param to controle min number of blocks during paralisation

silent

If FALSE then the progress will be shown

Value

raster

Examples

1
wpSetValueWhichindexes( x=raster("E:/asm_grid_100m_ccidadminl1.tif"), y=1,v=1, cores=4)

wpgp/wpUtilities documentation built on May 29, 2019, 11:58 a.m.