Skip to content
Prev 22057 / 29559 Next

rainfall interpolation using ANN

Peter,
This is a simplified version of your script untested, of course, given you
send you no data):

library(gstat)
library(raster)

dat71 <- shapefile("d:/FireDanger/IDW/71stations.shp")
sample.grid <- raster("rawsd_71Stations.tif")
#note that there are parameters you need to choose
m <- gstat(formula=VALUE1 ~1, data=dat71, nmax=10, set=list(idp = 0.5))
r_grid71 <- interpolate(sample.grid, m)

plot(r_grid71)

Robert
On Tue, Dec 2, 2014 at 8:45 AM, ping yang <pingyang.whu at gmail.com> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20141202/71066e42/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 14586 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20141202/71066e42/attachment.png>