Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Load libraries ----------------------------------------------------------
- library(raster)
- library(sf)
- library(dplyr)
- require(data.table)
- #require(lidR)
- df1 = fread(file = '~/data/points/test.csv',na.strings = '')
- colSums(is.na(df1))
- pts <- df1[,c("X", "Y",'id')]
- r = raster(ncol=36000, nrow=18000, vals=1)
- # get cell numbers
- cells <- cellFromXY(r, pts)
- # pick one point per cell
- sel <- aggregate(pts, list(cells), function(i)i[1])
- gc()
- pts = sel[,c("X", "Y",'id')]
- #shift raster
- r = raster::shift(r, .1*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .1*xres(r), .1*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .15*xres(r), .15*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .8*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .85*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .8*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .85*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .7*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .75*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .7*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .75*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .6*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .65*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .6*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .65*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .5*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .55*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .5*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .55*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .4*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .45*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .4*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .45*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .3*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .35*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .3*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .35*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .2*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .25*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .2*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .25*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .9*xres(r), .9*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r = raster::shift(r, .95*xres(r), .95*yres(r))
- cells <- cellFromXY(r, pts)
- sel <- aggregate(pts, list(cells), function(i)i[1])
- pts = sel[,c("X", "Y",'id')]
- r
- rm(r)
- gc()
- fwrite(sel[,-1],file = '~/data/points/test1.csv')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement