get_datetime()
calculates the earliest and latest acquisition datetime from point cloud files.
Details
This function requires the entire point cloud to be read! Thus it takes potentially a long processing time, especially if applied on entire folders or large files. Unfortunately it is only possible to derive exact acquisition date from newer (>= LAS 1.3) point cloud data, where acquisition date is encoded as adjusted standard GPS time. Otherwise, additional information on GPSweek is necessary.
Examples
f <- system.file("extdata", package = "managelidar")
get_datetime(f)
#>
#> filename datetime_min datetime_max
#> 1 3dm_32_547_5724_1_ni_20240327.laz 2024-03-27 08:23:06 2024-03-27 08:29:25
#> 2 3dm_32_547_5725_1_ni_20240327.laz 2024-03-27 08:25:48 2024-03-27 08:32:28
#> 3 3dm_32_548_5724_1_ni_20240327.laz 2024-03-27 08:23:05 2024-03-27 08:36:29
#> 4 3dm_32_548_5725_1_ni_20240327.laz 2024-03-27 08:29:22 2024-03-27 08:40:51