Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grid <- raster(extent(one.ym))
- res(grid) <- res(one.ym)[1]
- proj4string(grid)<-proj4string(one.ym)
- gridpolygon <- rasterToPolygons(grid)
- writeOGR(obj = gridpolygon,dsn="/home/user/",layer="mygrid_modis.shp", driver = "ESRI Shapefile", overwrite_layer = T
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement