Re: [R-sig-Geo] SpatialGridDataFrame to data.frame

2010-01-22 Thread Laura Poggio
so convert to SPDF: > mp=SpatialPointsDataFrame(coordinates(m),dat...@data) > class(mp) > [1] "SpatialPointsDataFrame" > names(m...@data) > [1] "x" "y" "part.a" "part.b" "dist" "soil" "ffreq" > > &g

[R-sig-Geo] SpatialGridDataFrame to data.frame

2010-01-22 Thread Laura Poggio
Dear all, I am reading a raster file using the readGDAL function. The file has 360x364 cells. Looking at the structure of the object (class SpatialGridDataFrame) obtained I can see: @ coords : num [1:2, 1:2] 4081420 4092190 2955325 2966215 I need to transform it as SpatialPixelsDataFrame or d

Re: [R-sig-Geo] plotting 100 variograms on the same plot

2009-12-05 Thread Laura Poggio
2009/12/4 Paul Hiemstra > Paul Hiemstra wrote: > >> Laura Poggio wrote: >> >>> Dear all, >>> I would like to plot 100 variograms on the same plot, possibly using a >>> loop. >>> >>> At the moment I am using autofitVariogram in the pac

[R-sig-Geo] plotting 100 variograms on the same plot

2009-12-04 Thread Laura Poggio
Dear all, I would like to plot 100 variograms on the same plot, possibly using a loop. At the moment I am using autofitVariogram in the package Automap to fit the variograms automatically. I found some code calling the lattice package ( http://tolstoy.newcastle.edu.au/R/e7/help/09/06/0940.html), b

Re: [R-sig-Geo] Problem installing rgdal on 64 bit fedora

2009-09-23 Thread Laura Poggio
If you use: # yum search proj You should find proj, proj-devel, proj-epsg and proj-nad. At least it is what yum just found from my computer now. I had some problems earlier today to access fedora repository. What if you change repository? Laura 2009/9/23 Gabor Grothendieck > I am getting this m

Re: [R-sig-Geo] krige.bayes and data export

2009-07-24 Thread Laura Poggio
e more examples (see section "Geostatistics in geoR"): > http://spatial-analyst.net/scripts/meuse.R > > > T. Hengl > > > > -Original Message- > > From: r-sig-geo-boun...@stat.math.ethz.ch [mailto: > r-sig-geo-boun...@stat.math.ethz.ch] On Behalf >

[R-sig-Geo] krige.bayes and data export

2009-07-22 Thread Laura Poggio
"simulation", number.col=30) I did not find a way to store the simulation values in a dataframe. And I did not find any example around. I hope I manage to explain my problem. Thank you very much in advance Laura Poggio [[alternative HTML version deleted]]

Re: [R-sig-Geo] Normal score transformation

2008-07-08 Thread Laura Poggio
> http://www.msu.edu/~ashton<http://www.msu.edu/%7Eashton> > 235 Geography Building ph (517) 432-3561 > Michigan State University fx (517) 432-1671 > > On Tuesday 08 July 2008, Laura Poggio wrote: > > Dear all, > > I have a small image

[R-sig-Geo] Normal score transformation

2008-07-08 Thread Laura Poggio
Dear all, I have a small image with three bands and I would like to normalise the variance of the three bands in order to get a more homogeneous dataset for further elaborations. I am thinking to use the normal score transform, but I have some questions about how to implement in R and especially ho

Re: [R-sig-Geo] clustering multi band images

2008-06-12 Thread Laura Poggio
thank you. It seems now solved! Laura 2008/6/12 Agustin Lobo <[EMAIL PROTECTED]>: > > > Laura Poggio escribió: > .../... > >> >> 2008/6/12 Agustin Lobo <[EMAIL PROTECTED] > [EMAIL PROTECTED]>>: >> >> May I just ask you if you have easily

Re: [R-sig-Geo] clustering multi band images

2008-06-12 Thread Laura Poggio
The kl <- kmeans(as(img, "data.frame")[1:3], 5) worked perfectly. Thank you very much for the time spent to help me. Laura 2008/6/12 Edzer Pebesma <[EMAIL PROTECTED]>: > Roger Bivand wrote: > >> On Thu, 12 Jun 2008, Laura Poggio wrote: >> >> Dear

Re: [R-sig-Geo] clustering multi band images

2008-06-12 Thread Laura Poggio
of the spatial information of the image, which is actually > a fundamental part of the information of any image. > > Agus > > Laura Poggio escribió: > >> Dear list, >> I am trying to do some clustering on images. And I have two main problems: >> >> 1)

Re: [R-sig-Geo] clustering multi band images

2008-06-12 Thread Laura Poggio
<[EMAIL PROTECTED]>: > On Thu, 12 Jun 2008, Laura Poggio wrote: > > Dear list, >> I am trying to do some clustering on images. And I have two main problems: >> >> 1) Clustering multiband images. >> I managed to be successful with a single band image, but wh

[R-sig-Geo] clustering multi band images

2008-06-11 Thread Laura Poggio
Dear list, I am trying to do some clustering on images. And I have two main problems: 1) Clustering multiband images. I managed to be successful with a single band image, but when trying to apply to a 3 band I get the following warning message: In as.matrix.SpatialGridDataFrame(x) : as.matrix.Sp

[R-sig-Geo] writing tiff/geotiff in R

2008-06-11 Thread Laura Poggio
Dear list, I managed to read an image in R and to make various elaborations on it, mainly clustering. Now I would like to save the results I got as tiff or geotiff. I found a lot of different examples, but none seems to work. Any suggestions on tutorials or code examples for saving clustering resul