classify_grid_water {flexurba}R Documentation

Create the DEGURBA grid cell classification of water cells

Description

[Deprecated]

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 DoU_preprocess_grid()

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 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.

Value

SpatRaster with the grid cell classification of water cells


[Package flexurba version 0.2.2 Index]