Renames files according to schema validated by check_files()
. This is according to ADV standard.
Usage
set_names(
path,
prefix = "3dm",
zone = 32,
region = NULL,
year = NULL,
copc = FALSE,
verbose = FALSE
)
Arguments
- path
A path to a directory which contains las/laz files
- prefix
3 letter character. Naming prefix (defaults to "3dm")
- zone
2 digits integer. UTM zone (defaults to 32)
- region
2 letter character. (optional) federal state abbreviation. It will be fetched automatically if Null.
- year
YYYY. (optional) acquisition year to append to filename. If not provided the year will be extracted from the files. It will be the acquisition date if points contain datetime in GPStime format, otherwise it will get the year from the file header, which is the processing date by definition.
Examples
f <- system.file("extdata/3dm_32_547_5724_1_ni_20240327.laz", package = "managelidar")
copy <- tempfile(fileext = ".laz")
file.copy(f, copy)
#> [1] TRUE
set_names(copy)
#> Error in loadNamespace(x): there is no package called ‘lasR’