Timeline for Create a DTM using the TIN algorithm
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 5, 2023 at 13:39 | comment | added | JRR |
{ORIGNALFILENAME} . Or {*} is understood and maybe * is understood as well.
|
|
Jun 5, 2023 at 13:01 | comment | added | Arthur_Morgan |
Yup it failed after a while so what template should I use so that the function automatically picks up each LAS file's filename and adds _dtm to it while saving its DTM raster to file?
|
|
Jun 5, 2023 at 12:29 | comment | added | JRR |
There is nothing in {} I'm surprised it does not crash, fails or whatever. Anyway it won't work.
|
|
Jun 5, 2023 at 12:22 | comment | added | Arthur_Morgan |
So now I am running opt_output_files(BC_LAS_List) = paste0("O:/LiDAR_Tree_Points/{}_dtm") . Idk if this is correct or not, but it is running, however I am noticing the memory use going up.
|
|
Jun 5, 2023 at 12:20 | comment | added | Arthur_Morgan |
So I ran opt_output_files(BC_LAS_List) = paste0("O:/LiDAR_Tree_Points/{ORIGINALFILENAME}_dtm") thinking that the function will pickup the original filename from LAS file and put _dtm next to it to save the DTM raster file. But instead I got this error Error in eval(parse(text = text, keep.source = FALSE), envir) : object 'ORIGNALFILENAME' not found .
|
|
Jun 2, 2023 at 20:52 | comment | added | JRR | Your path is not templated. See my edited anwser | |
Jun 2, 2023 at 20:52 | history | edited | JRR | CC BY-SA 4.0 |
added 1345 characters in body
|
Jun 2, 2023 at 20:15 | comment | added | Arthur_Morgan |
So I first ran pt_output_files(LAS_List) = paste0("O:/folder/filename_dtm") and then I ran dtm_tin = rasterize_terrain(BC_LAS_List, res = 1, algorithm = tin()) . First thing I noticed was that the memory was still being used up. Also a little later I got this error: error occurred when processing the chunk 2. Try to load this chunk with: chunk <- readRDS("C:\Users\AppData\Local\Temp\RtmpeoYno9/chunk2.rds") las <- readLAS(chunk) [writeRaster] file exists. You can use overwrite=TRUE to overwrite it
|
|
Jun 2, 2023 at 20:01 | vote | accept | Arthur_Morgan | ||
Jun 2, 2023 at 19:40 | comment | added | Arthur_Morgan |
Awesome, but I am still a bit confused, do I need to first run opt_output_files(LAS_list) <- paste0("folder/{*}_dtm") and then run rasterize_terrain which will automatically save the DTM raster to the disk path defined using opt_output_files ?
|
|
Jun 2, 2023 at 19:23 | history | answered | JRR | CC BY-SA 4.0 |