x <- matrix( 0, 50, 50)
x[ sample(1:50,10), sample(1:50,10)] <- rexp( 100, 0.25)
y <- kernel2dsmooth( x, kernel.type="disk", r=6.5)
x <- kernel2dsmooth( x, kernel.type="gauss", nx=50, ny=50, sigma=3.5)
hold <- make.SpatialVx(x, y, thresholds=c(1e-8, 0.05, 0.1),
field.type="random")
look <- upscale2d( hold, thresholds=seq(0.01,1,,5), levels=c(1, 3, 20))
look
plot( look)
plot( look)
data(geom001)
data(geom000)
data(ICPg240Locs)
hold <- make.SpatialVx(geom000, geom001, thresholds=c(0.01,50.01),
loc=ICPg240Locs, projection=TRUE, map=TRUE, loc.byrow = TRUE,
field.type="Precipitation", units="mm/h",
data.name=c("Geometric", "geom000", "geom001"))
look <- upscale2d(hold, quantiles=c(0.25, 0.5, 0.75),
levels=c(1, 3, 9, 17, 33, 65, 129, 257),
verbose=TRUE)
plot(look, set.pw=TRUE)
look <- upscale2d(hold, quantiles=c(0.25, 0.5, 0.75),
q.gt.zero=TRUE, verbose=TRUE)
plot(look)
look <- upscale2d(hold, thresholds=c(1e-8, 0.1, 0.5, 45, 50.1),
verbose=TRUE)
plot(look)
Run the code above in your browser using DataLab