Error: Large on-disk rasters are not supported by locate_tree. Load the raster manually.

Hi!
Anyone know how to solve the problem with large raster and locate_tree? Do you know how to process this raster with locate_tree without cutting the raster?

My console:

chmurypkt = readLAScatalog("LAZ_EVRF/", filter = "-keep_class 2 3 4 5")
opt_output_files(chmurypkt) = "normalized_EVRF/{ORIGINALFILENAME}_norm"
chmurypkt_norm = normalize_height(chmurypkt, algorithm = knnidw(k = 10, p = 2, rmax = 50), na.rm = T)
opt_output_files(chmurypkt_norm) = "chm_p2r/{ORIGINALFILENAME}_CHMp2r"
chm_p2r = rasterize_canopy(chmurypkt_norm, res = 1, algorithm = p2r())
f_h = function(x){x*0.15+3}
memory.limit(9999999999999)
[1] 1e+13
rasterOptions(todisk = TRUE)
wh_chm_p2r = locate_trees(chm_p2r, lmf(f_h, hmin = 4, shape = "circular"), uniqueness = "incremental")
Error: Large on-disk rasters are not supported by locate_tree. Load the raster manually.

I tried to merge all the CHM .tif in one - did not help.
I tried chm_p2r = terra::rast("chm_p2r/rasterize_canopy.vrt") - did not help.

Thank you very much in advance for your help!

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.