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

Hi list,

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.

Regards,
Lorenzo

On 11/03/16 16:06, Lorenzo Bottaccioli wrote:

Hi list,

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.

You can try with GDAL's MEM driver.

Moritz

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@gclements.plus.com>