[R] Problem in "cannot allocate vector of size"

2016-09-26 Thread GwanSeon Kim
Hi R-Users,
I am running raster to point code in R, but I have an error message that
"cannot allocate vector of size 1.7 Gb". One of my friends run the same
code I used, and it is working with his computer. I am using Window 7
64-bit with 16 GB ram. When I check memory size and limit in RStudio, I
have memory.size() : [1] 11205.57 and memory.limit() : [1] 16341. I already
searched on google to solve this problem, but I could not fix it. Could
anyone possibly help me to solve this problem?
Thanks,

Sun

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Errors in Raster to Point

2016-09-19 Thread GwanSeon Kim
Hi, all
I am just beginner to use R.
I am working with TIF image file, and the information about the raster is
following:

class   : RasterLayer
dimensions  : 11150, 21808, 243159200  (nrow, ncol, ncell)
resolution  : 30, 30  (x, y)
extent  : 569685, 1223925, 1513995, 1848495  (xmin, xmax, ymin, ymax)
coord. ref. : +proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0
+y_0=0 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0
data source :
C:\Users\Gwan\AppData\Local\Temp\Rtmpg506Ee\raster\r_tmp_2016-09-14_122409_6260_09589.grd
names   : test_map
values  : 1, 225  (min, max)
attributes  :
   ID OBJECTID Value Red Green Blue   Count   Class_Name
Opacity
 from:  02 1   1 00 5982503 Corn
1
 to  : 48  255   254   0 00   10336 Dbl Crop Barley/Soybeans
1



>From this Rasterlayer, I want to convert raster to point for each pixel
based on "Value (one of column name)" and create a raster with
georeferenced information.
I used code as following: RP <- rasterToPoints(KY_raster)
However, I could not get the points and have an error message "cannot
allocate vector of size 5.4 Gb" and "Your computer is low on memory. Save
your files and close these programs".
Could someone please help me how I can convert to raster to points??
Best,

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.