Re: [R-sig-Geo] Calculating what proportion of polygons is covered by rivers

2014-12-01 Thread Robert J. Hijmans
Juta, I think you can do something along these lines: library(raster) library(rgeos) x - union(districts, rivers) a - gArea(x, byid=TRUE) head(x) head(a) or x - intersect(districts, rivers) and compare to 'districts' Robert On Sun, Nov 30, 2014 at 2:59 PM, Juta Kawalerowicz

[R-sig-Geo] rainfall interpolation using ANN

2014-12-01 Thread Mengxi Yang
Dear list, I am going to do daily rainfall interpolation using ANN. but I am not familiar with it. Can somebody give some advise or example? my data like: I have 325 stations in different location.each station have unique code and coordinates. And I want to interpolate in 1km resolution. I have

Re: [R-sig-Geo] Calculating what proportion of polygons is covered by rivers

2014-12-01 Thread Juta Kawalerowicz
Many thanks for this suggestion Robert. Meanwhile, for anyone trying to solve similar problem in the future a nice walk though is on page 139-140 of the new edition of Applied Spatial Data Analysis with R book! Juta On Mon, Dec 1, 2014 at 8:24 AM, Robert J. Hijmans r.hijm...@gmail.com wrote:

Re: [R-sig-Geo] rainfall interpolation using ANN

2014-12-01 Thread Nahm Lee
This is my example with idw based on a web site, # http://www.geo.ut.ee/aasa/LOOM02331/R_idw_interpolation.html. Nahm Lee n...@valleywater.orgmailto:n...@valleywater.org # http://www.geo.ut.ee/aasa/LOOM02331/R_idw_interpolation.html library(ggplot2) library(gstat) library(sp)