po2: Pressure of dissolved oxygen in air or water

Description Usage Arguments Details Value Warnings Author(s) Examples

View source: R/po2.R

Description

Calculate oxygen partial pressure as a function of temperature and salinity. Oxygen is a constant fraction (o2frac) of total gas pressure after removing water vapor pressure.

Usage

1
po2(t, s = 0, p = 101.325)

Arguments

t

A vector of temperature values in degrees Celsius

s

A vector of salinity values (parts per thousand)

p

Total gas pressure (in kPa), typically atmospheric pressure above the body of water

Details

See Warnings.

Value

Partial pressure of oxygen in kPa

Warnings

It is assumed that vectors t and s have the same length, or that one of the two is a constant value. This is not checked in the present version, the user must make sure it is the case.

Author(s)

Denis Chabot

Examples

1
2
3
4
5
6
7
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as

po2(t=10, s=28, p=101.325)

denis-chabot/fishMO2 documentation built on July 16, 2020, 1:53 a.m.