possess: Read a georeference image and extract values for using in...

Description Usage Arguments Value Examples

View source: R/possess.R

Description

extract values from a image to be used on each region

Usage

1
possess(geoemiss, filename = NA, plots = T, verbose = T)

Arguments

geoemiss

a sf from geoemiss

filename

image filename

plots

plot individual regions

verbose

display additional information

Value

a sf with the area shapes and the total emission and a raster image for each area

Examples

1
2
3
4
5
6
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))
image  <- 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)

Schuch666/inventory documentation built on Jan. 31, 2022, 4:37 a.m.