possess.Rd
extract values from a image to be used on each region
possess(geoemiss, filename = NA, plots = T, verbose = T)
geoemiss | a sf from geoemiss |
---|---|
filename | image filename |
plots | plot individual regions |
verbose | display additional information |
a sf with the area shapes and the total emission and a raster image for each area
states <- sf::st_read(paste(system.file("extdata", package = "inventory"),"/states.shp",sep=""), quiet = TRUE) Nox <- geoemiss(geom = states,variable = "Nox",names = c("sp","rj"),values = c(1000,20))#> calculating Nox for 2 areasimage <- paste(system.file("extdata", package = "inventory"),"/tiny.tif",sep="") ras <- possess(Nox,image,plots = FALSE) test <- griding(ras,variable = "Nox", res = 0.1, type = "local", plot = TRUE)#> processing sp area ...#>#>#> processing rj area ...#>#>