preprocess_grid {flexurba}R Documentation

Preprocess the data for the DEGURBA grid cell classification

Description

[Deprecated]

preprocess_grid() has been renamed to DoU_preprocess_grid() to create a more consistent API and to better indicate that this function is specifically designed for preprocessing the grid data to reconstruct the DEGURBA classification with DoU_classify_grid().

Usage

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)

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]