7.2.emissions.calculations {pems.utils} | R Documentation |
Emission calculations
Description
Functions associated with emissions calculations.
Usage
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)
Arguments
conc |
(Data series, typically pems.element vector) Analyte/species concentrations, the main input for
calculating emissions. If |
time , exflow , extemp , express |
(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
|
analyte |
(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, |
... |
(Optional) Other arguments, currently passed on to function provided as
|
data |
(Optional |
fun.name , this.call , force |
(Various pems management functions) |
delay , mm |
(Optional numerics) Emissions calculation constants. |
Details
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 codeconc 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.
Value
calcEm_HoribaPitot
(and calcEm
by default) use Horiba Manual methods to
calculate emissions (in g/s).
Note
calcEm...
constants can be set/modified in the calculation call, e.g.
calcEm(..., delay = [new.value])
. If not supplied, these are first checked for
in the associated pems
object (if supplied), or set to default values. See
References. If analyte-related constants are to be added to a pems
object,
these should be named in the format '[type].[analyte]', e.g. delay.co
for
the delay
constant to be used for the analyte CO.
Unit handling in pems.utils
is via checkUnits
, getUnits
,
setUnits
and convertUnits
. See common.calculations
for details.
Author(s)
Karl Ropkins
References
calcEm_HoribaPitot
uses methods described in:
The Horiba Operators Manual.
See Also
See common.calculations
.
Examples
###########
##example 1
###########
#basic usage
em.co <- calcEm(conc.co, data = pems.1)
#where the returned object, em.co, is a pems.element