I have a catalog of just over 3000 LAZ files that I want to split into regions using clip_rectangle(). The total catalog size is 60GB. My PC has 64GB of RAM but I get an error that lidR is unable to create a 2.8GB vector when I try to create my subset.
Is the simple answer to get more RAM or is there a way to avoid this without having to add more RAM?
Here's my script:
library(lidR) set_lidr_threads(6L) ctg <- readLAScatalog("c:/noaa/utm/ground/") #Make sure we plot the catalog so we can see where we want our clip regions plot(ctg) subset = clip_rectangle(ctg, 5550000, 2795000,570000,27972500)