project_emission: project emissions using growth factors.

View source: R/project_emissions.R

project_emissionR Documentation

project emissions using growth factors.

Description

project emissions using growth factors.

Usage

project_emission(r, shape, factor = rep(1, nrow(shape)), background = 1)

Arguments

r

raster object

shape

sf object from a shapefile containing 5 regions

factor

numeric vector with 5 growth factors

background

growth factors to be used outside the domain (default is 1)

Examples

regions <- sf::read_sf(paste0(system.file("extdata",package="hackWRF"),"/BR_regions.shp"))
factors <- c(1.1,1.5,2,1.5,0.75)
# using XLAT only for test purposis
x  <- eixport::wrf_raster(paste0(system.file("extdata",package="hackWRF"),"/wrfinput_d01"),'XLAT')
project_x <- project_emission(x,regions,factors)
plot_raster(project_x,proj = TRUE)

Schuch666/hackWRF documentation built on June 9, 2025, 1:46 p.m.