Functions associated with emissions calculations.
calcEm(conc = NULL, calc.method = calcEm_HoribaPitot,
analyte = NULL, ..., data = NULL, fun.name = "calcEm",
force = FALSE, this.call = NULL)calcEm_HoribaPitot(conc = NULL, time = local.time, exflow = exh.flow.rate,
extemp = exh.temp, express = exh.press, analyte = NULL,
delay = NULL, mm = NULL, ..., force = force, data = NULL,
fun.name = "calcEm_HoribaPitot", this.call = NULL)
calcEm_HoribaPitot
(and calcEm
by default) use Horiba Manual methods to
calculate emissions (in g/s).
(Data series, typically pems.element vector) Analyte/species concentrations, the main input for
calculating emissions. If conc
is a concentration data series from a standard
pems
source it should be named conc.[analyte]
and pems.utils
will
manage it accordingly. See below for further details.
(Data series, typically pems.element vectors) Other inputs used when calculating emissions. The
combination depending on the calcuation method used (and set by calc.method
).
(Required function) The function to use to calculate emissions. (Default
calcEm_HoribaPitot
). See below for further details.
(Optional character vector) The analyte emissions are to be calculated for. If supplied,
this is used as a reference when assigning molecule weight and other analyte properties
if these are not provided as part of calculate call. If not supplied, pems.utils
attempts to recover these from available sources, e.g. data
if supplied as part
of the calculation call or package references such as ref.chem
.
(Optional) Other arguments, currently passed on to function provided as
calc.method
(default calcEm_HoribaPitot
) and appropriate
pems.utils
functions.
(Optional pems
object) The data source for inputs.
(Various pems management functions) fun.name
(character vector) the name of the
parent function, to be used in error messaging.
this.call
the initial call (can generally be ignored). force
(Logical) Should calcEm
and calc.method
ignore any error checking, e.g.
units assignments, and do calculations anyway?
(Optional numerics) Emissions calculation constants. delay
is the time delay between
conc
measurements and other timeseries. mm
is the molecular mass of the
analyte. If supplied, these in-call values supercede any preset in e.g. package look-up.tables
.
Karl Ropkins
calcEm...
functions calculate emissions.
calcEm
is a wrapper function which is intended to provide a conventient front for
emissions calculation methods. It accepts an input conc
which it checks and passes
on to calc.method
, along with other supplied arguments.
calcEm_HoribaPitot
calculates emissions using methods described in the Horiba OBS
Operators Manual. In addition to conc
, the function requires the time, and exhaust
flow data series (measured by the OBS Pitot flow meter). By default, the function assumes
that these are default names that are generated for these when standard OBS files are
imported into R
using the pems.utils
import function importOBS2PEMS
.
See References and Note below.
calcEm_HoribaPitot
uses methods described in:
The Horiba Operators Manual.
See common.calculations
.
###########
##example 1
###########
#basic usage
em.co <- calcEm(conc.co, data = pems.1)
#where the returned object, em.co, is a pems.element
Run the code above in your browser using DataLab