tdr.patm {oce} | R Documentation |
Estimate atmospheric pressure in TDR record
tdr.patm(x, dp=0.5)
x |
A tdr object, e.g. as read by
read.tdr , or a list of pressure (in decibars). |
dp |
Half-width of pressure window to be examined (in decibars). |
Pressures must be in decibars for this to work. First, a
subset of pressures is created, in which the range is sap-dp
to
sap+dp
. Here, sap
=10.1325 dbar is standard sealevel
atmospheric pressure. Within this window, three measures of central
tendency are calculated: the median, the mean, and a weighted mean
that has weight given by exp(-2*((p -
sap) / dp)^2).
A list of four estimates: sap
, the median, the mean, and
the weighted mean.
Dan Kelley
See read.tdr
for more information on dealing
with the tdr
data type, including examples.
library(oce) data(tdr) print(tdr.patm(tdr))