Skip to content
Prev 28336 / 29559 Next

Mask from raster with less RAM

On Wed, 12 Aug 2020, Frederico Faleiro wrote:

            
Use CRAN Windows or MacOS binaries, or install the system requirements. 
Unless you can do that, for example because you do not control the 
platform you are using (are you working on a cloud instance?), do not 
install packages needing external software 
from source.
Please use GRASS. What you are trying to do is something that has "just 
worked" in GRASS since it was first created. GRASS can be run from the 
shell, from Python and from R (rgrass7). Or use SAGA, another fast raster 
processor. Both mask from raster directly. Write a shell script for GRASS 
to resample your rasters, mask them, and complete. You can also use GRASS 
and SAGA from QGIS. You might use Python or R to make file name handling 
"easier" than in a script. Neither GRASS nor SAGA use much memory unless 
rasters are huge, and then they are lean.

Roger