Re: [R-sig-Geo] map algebra with ascii grid

2007-07-16 Thread Edzer J. Pebesma
------------------------- >> >> Message: 1 >> Date: Sun, 15 Jul 2007 07:40:12 -0600 >> From: Philip Riggs <[EMAIL PROTECTED]> >> Subject: [R-sig-Geo] map algebra with ascii grid >> To: r-sig-geo@stat.math.ethz.ch >> Me

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-16 Thread Tim Keitt
-- > > Message: 1 > Date: Sun, 15 Jul 2007 07:40:12 -0600 > From: Philip Riggs <[EMAIL PROTECTED]> > Subject: [R-sig-Geo] map algebra with ascii grid > To: r-sig-geo@stat.math.ethz.ch > Message-ID: <[EMAIL PROTECTED]> >

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-16 Thread Denham Robert
ater QScape Building, 80 Meiers Road, Indooroopilly Qld 4068 -- Message: 1 Date: Sun, 15 Jul 2007 07:40:12 -0600 From: Philip Riggs <[EMAIL PROTECTED]> Subject: [R-sig-Geo] map algebra with ascii grid To: r-sig-geo@stat.ma

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-16 Thread Tim Keitt
On 7/16/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Sun, 15 Jul 2007, Tim Keitt wrote: > > > On 7/14/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > >> On Sat, 14 Jul 2007, Michal Gallay wrote: > >> > >> > Dear R Users, > >> > > >> > could you please advise me on doing map algebra with spatia

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-16 Thread Roger Bivand
On Sun, 15 Jul 2007, Tim Keitt wrote: > On 7/14/07, Roger Bivand <[EMAIL PROTECTED]> wrote: >> On Sat, 14 Jul 2007, Michal Gallay wrote: >> >> > Dear R Users, >> > >> > could you please advise me on doing map algebra with spatial grids? It's >> > the first time I am using spatial objects in

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-15 Thread Tim Keitt
On 7/14/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Sat, 14 Jul 2007, Michal Gallay wrote: > > > Dear R Users, > > > > could you please advise me on doing map algebra with spatial grids? It's > > the first time I am using spatial objects in R. I have imported an ascii > > grid file and wanted

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-15 Thread Barry Rowlingson
Agustin Lobo wrote: > Roger, > > I think that having Arithmetic operations defined for > SpatialGridDataFrame objects would be very useful. The problem is that SpatialSomethingDataFrame objects don't inherit data.frame's behaviour (with respect to mathematical operators). Perhaps if R's OO i

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-15 Thread Michal Gallay
Thank you very much to All , Roger's hint doest the thing I need. I am working with DEMs and instead of processing them partially in a GIS, I wanted to do everything in R as most of the analyses are carried out in R. I'm sure I will have more questions in the future:) I appreciate all the advi

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-15 Thread Agustin Lobo
Roger, I think that having Arithmetic operations defined for SpatialGridDataFrame objects would be very useful. May be I'm missing something, but the argument that "columns of the data frame (here a single column) may contain data of different classes" does not seem a valid one to me, as this i

[R-sig-Geo] map algebra with ascii grid

2007-07-15 Thread Philip Riggs
>> Dear R Users, >> >> could you please advise me on doing map algebra with spatial >> grids? It's >> the first time I am using spatial objects in R. I have imported an >> ascii >> grid file and wanted to round the values in it or sum with a >> value, but it >> gives an error message: >> >>>

Re: [R-sig-Geo] map algebra with ascii grid

2007-07-14 Thread Roger Bivand
On Sat, 14 Jul 2007, Michal Gallay wrote: > Dear R Users, > > could you please advise me on doing map algebra with spatial grids? It's > the first time I am using spatial objects in R. I have imported an ascii > grid file and wanted to round the values in it or sum with a value, but it > gives an

[R-sig-Geo] map algebra with ascii grid

2007-07-14 Thread Michal Gallay
Dear R Users, could you please advise me on doing map algebra with spatial grids? It's the first time I am using spatial objects in R. I have imported an ascii grid file and wanted to round the values in it or sum with a value, but it gives an error message: >require(maptools) >x <- readAsciiG