r-spatialecology/landscapemetrics

Large raster and Error: vector memory exhausted (limit reached?)

ManuelSpinola opened this issue · 2 comments

I am processing a large raster and I got: Error: vector memory exhausted (limit reached?)

I am doing the analysis in an IMAC with Ventura and 32 GB of ram in R 4.2.2.

I am working with the new ESA lulc of 10 meter resolution at the country level )only one samall country).

Is there any way to avoid this error?

percentage_class <- lsm_c_pland(landscape = cr_r_5367)

Error: vector memory exhausted (limit reached?)

Unfortunately at the moment there is no way. Work-arounds would be to split the large raster into several smaller sub-areas, however, this might change some metrics of course.