Learn R Programming

oce (version 0.8-6)

ptPatm: Estimate atmospheric pressure in pt record

Description

Estimate atmospheric pressure in pt record

Usage

ptPatm(x, dp=0.5)

Arguments

x
A pt object, or a list of pressures (in decibars).
dp
Half-width of pressure window to be examined (in decibars).

Value

  • A list of four estimates: sap, the median, the mean, and the weighted mean.

Details

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)$.

See Also

The documentation for pt-class explains the structure of PT objects, and also outlines the other functions dealing with them.

Examples

Run this code
library(oce)
data(ptr)
print(ptPatm(ptr))

Run the code above in your browser using DataLab