combineFlux: A function to combine map sequences of biogenic and...

View source: R/ukghg.R

combineFluxR Documentation

A function to combine map sequences of biogenic and anthropogenic fluxes

Description

This function combines biogenic and anthropogenic greenhouse gas fluxes from the UK, based on a spatio-temporal model and the national GHG inventory data.

Usage

combineFlux(flux_anthro, flux_bio)

Arguments

flux_anthro

anthropogenic greenhouse gas fluxes

flux_bio

biogenic greenhouse gas fluxes

See Also

calcFlux, the higher-level function which calls this.

Examples

startDate <- as.POSIXct(strptime("01/06/2006", "%d/%m/%Y"), tz = "UTC")
endDate   <- as.POSIXct(strptime("02/06/2006", "%d/%m/%Y"), tz = "UTC")
# create a sequence of dates
nTimes <- 2
datect <- seq(startDate, endDate, length = nTimes)
flux_anthro <- calcFlux_anthro("ch4", datect, proj = "OSGB", res = "100", "mol", "nano")
flux_bio    <- calcFlux_bio   ("ch4", datect, proj = "OSGB", res = "100", "mol", "nano")
flux_all    <- combineFlux(flux_anthro, flux_bio)

NERC-CEH/ukghg documentation built on March 31, 2022, 3:16 a.m.