[GRASS-user] r.external.out store data in memory

Glynn Clements glynn at gclements.plus.com
Tue Mar 15 15:34:52 PDT 2016


Lorenzo Bottaccioli wrote:

> I wanted to know if was possible and how to store produced rasters in
> memory (as an rasterio object or similar) and do not store/save the in the
> disk, because I just need to do some statistics and then delete them. This
> if possibele will speed up my workflow because I'll avoid I/O from the disk.

This isn't possible, beyond the fact that the OS will cache files in
memory provided that sufficient memory is available. Writing a file
doesn't wait for the data to be written to disk, and subsequent
commands which read the file won't need to read from disk if the file
is still in memory.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list