classify_grid_urban_centres {flexurba} | R Documentation |
Create the DEGURBA grid cell classification of urban centres
Description
classify_grid_urban_centres()
has been renamed to DoU_classify_grid_urban_centres()
to create a more consistent API and to better indicate that this function is specifically designed to classify urban centres in the context of the DEGURBA classification.
Usage
classify_grid_urban_centres(
data,
density_threshold = 1500,
size_threshold = 50000,
contiguity_rule = 4,
built_criterium = TRUE,
built_threshold = 0.2,
smooth_pop = FALSE,
smooth_pop_window = 5,
gap_fill = TRUE,
max_gap = 15,
smooth_edge = TRUE,
smooth_edge_fun = "majority_rule_R2023A",
value = 3
)
Arguments
data |
path to the directory with the data, or named list with the data as returned by function |
density_threshold |
numeric. Minimum population density per permanent land of a cell required to belong to an urban centre |
size_threshold |
numeric. Minimum total population size required for an urban centre |
contiguity_rule |
integer. Which cells are considered adjacent: |
built_criterium |
logical. Whether to use the additional built-up area criterium (see details). If |
built_threshold |
numeric. Additional built-up area threshold. A value between |
smooth_pop |
logical. Whether to smooth the population grid before delineating urban centres. If |
smooth_pop_window |
integer. Size of the moving window used to smooth the population grid before delineating urban centres. Ignored when |
gap_fill |
logical. Whether to perform gap filling. If |
max_gap |
integer. Gaps with an area smaller than this threshold in urban centres will be filled (unit is km²). Ignored when |
smooth_edge |
logical. Whether to perform edge smoothing. If |
smooth_edge_fun |
character / function. Function used to smooth the edges of urban centres. Ignored when
|
value |
integer. Value assigned to urban centres in the resulting grid |
Value
SpatRaster with the grid cell classification of urban centres