preprocess_grid {flexurba} | R Documentation |
Preprocess the data for the DEGURBA grid cell classification
Description
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 |
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:
-
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.