合并具有不同尺寸/投影的栅格堆栈

时间:2019-05-23 13:37:42

标签: r gis raster

如何从FedData中提取整个CONUS SSURGO数据,然后如何将该栅格堆栈与worldclim数据合并到单个栅格堆栈中?

# FedData Tester
library(FedData)
library(magrittr)

# Extract data for the Village Ecodynamics Project "VEPIIN" study area:
# http://veparchaeology.org
vepPolygon <- polygon_from_extent(raster::extent(672800, 740000, 4102000, 4170000),
                                  proj4string = "+proj=utm +datum=NAD83 +zone=12")

# Get the NRCS SSURGO data (USA ONLY)
SSURGO.VEPIIN <- get_ssurgo(template = vepPolygon, 
                     label = "VEPIIN")
# Plot the NED again
raster::plot(NED)
# Plot the SSURGO mapunit polygons
plot(SSURGO.VEPIIN$spatial,
     lwd = 0.1,
     add = TRUE)

...

library(raster)
library(sp)

r <- getData("worldclim",var="bio",res=2.5)

0 个答案:

没有答案