Download and Compute Elevation Products for a Sequoia Project
seq_elevation.RdDownloads elevation datasets (DEM, DSM) from the IGN WMS, computes derived products (CHM, slope, aspect), and writes all resulting rasters into the Sequoia project directory.
Usage
seq_elevation(
dirname = ".",
buffer = 200,
res = 1,
crs = 2154,
overwrite = FALSE,
verbose = TRUE
)Arguments
- dirname
characterDirectory where the matrice file is located. Defaults to the current working directory.- buffer
numeric; Buffer aroundx(in meters) used to enlarge the download area.- res
numeric; resolution specified in the units of the coordinate system (seehappign::get_wms_raster())- crs
numericorcharacter; CRS of the returned raster (seehappign::get_wms_raster())- overwrite
logicalIfTRUE, file is overwritten.- verbose
logical; IfTRUE, display messages.
Value
A named list of file paths written by seq_write(), one per type.
Details
This function is a high-level convenience wrapper around:
get_dem()- Digital Elevation Modelget_dsm()- Digital Surface Modelget_chm()- Canopy Height Modelget_slope()- Slope rasterget_aspect()- Aspect raster
It automatically reads the project's parca layer, downloads the necessary
elevation data for its extent (with an optional buffer), computes all derived
products, and saves them using seq_write().