Skip to contents

Define urban-only pixels.

Usage

define_urban(
  population_raster,
  rururb_cutoff = 300,
  min_urbsize = 2000,
  directions = 8,
  mask = FALSE,
  verbose = FALSE
)

Arguments

population_raster

An input raster containing people per pixel. Default inputs assume input resolution to be approximately 1 sq. km. resolution.

rururb_cutoff

Minimum population per pixel to be eligible for urban classification.

min_urbsize

Minimum total population of clustered pixels to the classified as urban.

directions

See terra::patches, default is 8.

mask

TRUE/FALSE, Should the returned raster have masked values (1 = Urban, 0 = Rural). Default is FALSE.

verbose

TRUE/FALSE Print messages?

Value

A SpatRaster object.