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().
preprocess_grid(
directory,
filenames = c("BUILT_S.tif", "POP.tif", "LAND.tif"),
rescale_land = TRUE,
rescale_built = TRUE
)named listed with the required data to execute the grid cell classification procedure. The list contains following elements:
built: built-up area grid
pop: population grid
land: land grid
pop_per_land: population per area of permanent land
built_per_land: built-up area per permanent land
metadata_BUILT_S: the metadata of the built-up area grid
metadata_POP: the metadata of the population grid
metadata_LAND: the metadata of the land grid.
character. Path to the directory where the three input grids are saved (for example generated by the function download_GHSLdata())
vector of length 3 with the filenames of the built-up area, population and land grid
logical. Whether to rescale the values of the land grid (see details)
logical. Whether to rescale the values of the built-up area grid (see details)