Passer au contenu

Normalisation et/ou calcul de MNT avec le package lasR 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 normalises ou DTM deja presents ne sont pas re-calcules.

Utilisation

process_files(
  original,
  normalized = "",
  res = NULL,
  dtm_folder = NULL,
  roi = NULL,
  prompt = TRUE,
  lasR_options = list(ncores = lasR::concurrent_files(2L))
)

Arguments

original

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-class object of files in the folder.

normalized

Text, path to the folder that contains or will contain the normalized laz files. If empty string, normalisation will not be done. If some files are already present, the folder should contain a "cata.rda" file with the saved LAScatalog-class object of files in the folder.

res

numeric, DTM resolution, if NULL DTM computation will not be done.

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`.

roi

sf object or character vector. Region of interest if sf object, "blocs" of interest if character vector.

prompt

Boolean. Should the user be prompted before plotting and normalizing ?

lasR_options

list. Parameters passed to with parameter of exec function of lasR.

Valeur de retour

A list with the catalog of all normalised files and/or a data.frame names of computed DTMs

Exemples

if (FALSE) process_files("./data/LAZ_classe/", "./data/LAZ_norm/", prompt = TRUE, ncores = 2L) # \dontrun{}