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.
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)
)SpatRaster with the grid cell classification of water cells
path to the directory with the data, or named list with the data as returned by function DoU_preprocess_grid()
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.
numeric. Maximum proportion of permanent land allowed in a water cell
numeric. Maximum population size allowed in a water cell
numeric. Maximum built-up area allowed in a water cell
integer. Value assigned to water cells in the resulting grid
vector. Values in classification that can be overwritten by water cells. By default, the classification of rural cells (1) can be overwritten, but the classification of urban clusters (2) and urban centres (3) cannot.