Hello,

I'm running R in windows with 2 GB Ram and 120 GB hard drive

I have created a SpatialGridDataFrame object by using the functions
GridTopology and spkernel2d.

Here is the code:
bird06.xy<-coordinates(splanc_bird06[1:2])
grd1<-GridTopology(c(419983.3, 4924198), c(30,30), c(3375,3499))
k5000<-spkernel2d(bird06.xy, splanc_bird06$poly, h0=5000, grd1)
df<-data.frame(k5000=k5000)
kernel5000<-SpatialGridDataFrame(grd1, data=df)

Now I want to write kernel5000 into a ESRI readable grid/raster
I used the following function:

write.asciigrid(kernel5000, fname="kernelbird06.ag")
Error: cannot allocate vector of size 92258 Kb

I have three questions:
1. what is the solution to work around the memory problem? The computer has
2 GB of ram
2. How can I read/open the .ag file in ESRI ArcMap or ArcCatalog. I tried
the example in the write.asciigrid manual page but I could not read/open the
.ag file in ArcMap
3. Is write.asciigrid the correct function to write spatialGridDataFrame
object in ESRI readable grid format?

Thanks,
Debs.


-- 
Debarchana Ghosh
Research Assistant,
Department of Geography
University of Minnesota.
PH: 8143607580
www.tc.umn.edu/~ghos0033/

	[[alternative HTML version deleted]]


