add_storage: Apply Storage Flux Correction

Description Usage Arguments Details Value

Description

Correction of matter or energy flux (flux) with storage computed using discrete (one point) approach (st) or profile measurement of CO2 concentration (stp).

Usage

1
add_storage(x, st, stp = NULL)

Arguments

st

A numeric vector with storage computed using discrete (one point) approach.

stp

A numeric vector with storage computed using profile measurement of gas concentration.

flux

A numeric vector with flux values.

Details

If both storage estimates are available, stp takes priority. If both st and stp estimates are NA, original flux value is kept. flux, st and stp (if not NULL) must have the same length.

Adapted from: openeddy - add_st

Value

A vector with attributes varnames and units is produced. varnames value is set by name_out argument. units value is extracted from flux vector by units or set to default "-".


grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.