ailich / GLCMTextures

This R package calculates the most common gray-level co-occurrence matrix (GLCM) texture metrics used for spatial analysis on raster data.
https://ailich.github.io/GLCMTextures/
GNU General Public License v3.0
12 stars 4 forks source link

Improve code to run raster in blocks #1

Closed ailich closed 2 years ago

ailich commented 2 years ago

Fix code so that after running in blocks, the raster is stored to disk via a temporary file and not all values are read into memory. Use blocking code from ailich/MultiscaleDEM

https://rspatial.org/raster/pkg/appendix1.html https://gis.stackexchange.com/questions/305090/dividing-a-large-raster-into-blocks-for-iteration-in-r https://stackoverflow.com/questions/37880167/r-decrease-memory-limit

ailich commented 2 years ago

Updated in 6131fae