Calcul de MNT a partir des fichiers LiDAR HD
compute_dtm.RdCalcul des fichiers MNT a partir des fichiers LiDAR HD de l'IGN presents dans
un dossier (par exemple telecharges avec download_files) et
les enregistre dans un autre repertoire. Les fichiers MNT deja presents ne
sont pas re-calcules. Le calcul est effectuee avec la fonction
rasterize_terrain et l'algorithme tin
avec les points de classe 2 et 9. Les fichiers a traiter peuvent etre
selectionnes via une zone d'interet, il est conseille que les fichiers adjacents
soient egalement telecharges pour eviter les effets de bord.
Utilisation
compute_dtm(
laz_folder,
dtm_folder = NULL,
res = 1,
roi = NULL,
prompt = TRUE,
ncores = 2L
)Arguments
- laz_folder
Text, path to the folder that contains the laz files downloaded from IGN. The folder should contain a "cata.rda" file with the saved
LAScatalog-classobject of files in the folder.- dtm_folder
Text, path to the folder that contains or will contain the DTM files. If NULL a folder is created in the same directory as `laz_folder` with name "DTM_#res#m" where #res# is parameter `res`.
- res
numeric, DTM resolution
- roi
sfobject or character vector. Region of interest ifsfobject, "blocs" of interest if character vector.- prompt
boolean. Should the user be prompted before plotting and computing ?
- ncores
Integer, number of cores to use with
futurepackage.