DoU_preprocess_grid {flexurba}R Documentation

Preprocess the data for the DEGURBA grid cell classification

Description

The grid cell classification of the Degree of Urbanisation requires three different inputs:

The function rescales the built-up area and land grid if necessary (see details) and computes the population and built-up area per permanent land by dividing the respective grids by the land layer.

Usage

DoU_preprocess_grid(
  directory,
  filenames = c("BUILT_S.tif", "POP.tif", "LAND.tif"),
  rescale_land = TRUE,
  rescale_built = TRUE
)

Arguments

directory

character. Path to the directory where the three input grids are saved (for example generated by the function download_GHSLdata())

filenames

vector of length 3 with the filenames of the built-up area, population and land grid

rescale_land

logical. Whether to rescale the values of the land grid (see details)

rescale_built

logical. Whether to rescale the values of the built-up area grid (see details)

Details

The values of the land grid and built-up area grid should range from 0 to 1, representing the proportion of permanent land and built-up area respectively. However, the grid values of the GHSL are standard in m². With a cell size of 1 km², the values thus range from 0 to ⁠1 000 000⁠. The two grids can be rescaled by setting rescale_land=TRUE and/or rescale_built=TRUE respectively.

Value

named listed with the required data to execute the grid cell classification procedure. The list contains following elements:


[Package flexurba version 0.2.2 Index]