I have a list of laz files thinned before (name: thinned_pc_list
) and want to rasterize them with the point-to-raster algorithm. For one element of the laz files list, I get the error message:
Error in data.table::setnames(where, c("X", "Y")) : Can't assign 2 names to a 1 column data.table.
When increasing the subcircle radius of the disks, the error does not appear. Also when leaving the na.fill
argument, it works. So I think it's related to the lower number of NA pixels resulting from a larger subcircle radius. Here's my code:
# that works dsm_test <- lidR::rasterize_canopy(thinned_pc_list[[3]], res = 1, algorithm = lidR::p2r(subcircle = 0.25, na.fill = lidR::tin())) # here I get the error dsm_test <- lidR::rasterize_canopy(thinned_pc_list[[3]], res = 1, algorithm = lidR::p2r(subcircle = 0.2, na.fill = lidR::tin()))
Why does it appear only for this one laz file and do you know a way to fix it?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4