[R-sig-Geo] strange issue of memory converting a raster to a data frame

Sebastiano Trevisani @trev|@@n| @end|ng |rom |u@v@|t
Mon Jan 23 12:30:14 CET 2023


Dear list members,

In converting a raster as the one below to a data frame, I have an issue of
memory allocation only when I use a specific pc, and in particular the one
with more memory. To be more precise (using same version of R 4.2.2 and
Terra terra 1.6.47, by means of as.data.frame() function):

with a I5 processor with 8Gb of memory, windows 10 it works

with a I7 processor with 16gb of memory, windows 11 it doesn't

I'm not able to figure out a possible explanation!
Any suggestions on what to check?


SpatRaster
dimensions  : 5000, 5000, 18  (nrow, ncol, nlyr)
resolution  : 30, 30  (x, y)
extent      : -8526.878, 141473.1, 4110588, 4260588  (xmin, xmax, ymin,
ymax)
coord. ref. : WGS 84 / UTM zone 45N (EPSG:32645)
source      : multyMadRes2c.tif



Sebastiano

*      Sebastiano Trevisani, Ph.D.*
*            Associate Professor*
*Applied and Environmental Geology*


*  https://orcid.org/0000-0001-8436-7798
<https://orcid.org/0000-0001-8436-7798>*
*IUAV University of Venice: www.iuav.it <http://www.iuav.it/>*

*Address: Dorsoduro 2206,  Venice 30123, Italy Tel:    +39. 041. 257
1299Mail:    strevisani using iuav.it <strevisani using iuav.it> *
*"Le opinioni espresse sono riferibili esclusivamente all'autore e non *
* riflettono in alcun modo una posizione ufficiale dello IUAV "*
*"The views expressed are purely those of the writer and may not in
any circumstances be regarded as stating an official position of the IUAV."*

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list