classify_grid_water {flexurba} | R Documentation |
Create the DEGURBA grid cell classification of water cells
Description
classify_grid_water()
has been renamed to DoU_classify_grid_water()
to create a more consistent API and to better indicate that this function is specifically designed to classify water in the context of the DEGURBA classification.
Usage
classify_grid_water(
data,
classification = NULL,
water_land_threshold = 0.5,
water_pop_threshold = 0,
water_built_threshold = 0,
value = 0,
allow_overwrite = c(1)
)
Arguments
data |
path to the directory with the data, or named list with the data as returned by function |
classification |
SpatRaster. A grid to which the classification of water cells will be added. The grid can already contain the classification or urban centres, urban clusters and rural grid cell, but this is not mandatory. Note that the grid will be adapted in-place. |
water_land_threshold |
numeric. Maximum proportion of permanent land allowed in a water cell |
water_pop_threshold |
numeric. Maximum population size allowed in a water cell |
water_built_threshold |
numeric. Maximum built-up area allowed in a water cell |
value |
integer. Value assigned to water cells in the resulting grid |
allow_overwrite |
vector. Values in |
Value
SpatRaster with the grid cell classification of water cells