add_topography {medfateland} | R Documentation |
Add topography and land cover
Description
Initializes topography and land cover type for a set of target locations
Usage
add_topography(x, dem, progress = TRUE)
add_land_cover(
x,
land_cover_map,
wildland = NULL,
agriculture = NULL,
rock = NULL,
artificial = NULL,
water = NULL,
progress = TRUE
)
check_topography(x, filter_missing = FALSE)
check_land_cover(x, filter_missing = FALSE)
Arguments
x |
An object of class |
dem |
A digital elevation model (class |
progress |
A logical flag to print console output |
land_cover_map |
An object of class |
wildland , agriculture , rock , artificial , water |
Strings indicating the mapping from the legend of land_cover_map. |
filter_missing |
Boolean flag to filter locations with missing data |
Details
The user should manually define the mapping of land cover classes in land_cover_map
to the land cover types
used in medfateland.
Value
Function add_topography()
returns a modified object of class sf
with columns:
id
: Numeric location identifiers (if not existing).elevation
: Elevation above sea level (in m).slope
: Slope (in degrees).aspect
: Aspect (in degrees).land_cover_type
: Land cover type.
Function add_land_cover()
returns a modified object of class sf
with new column:
id
: Numeric location identifiers (if not existing).land_cover_type
: Land cover type.
See Also
impute_forests()
, add_soilgrids()
Examples
# See package vignettes 'Preparing inputs'