Learn R Programming

kgen (version 0.2.1)

kgen_poly: Kgen R polynomial function

Description

Kgen R polynomial function

Usage

kgen_poly(sal, temp_k, magnesium = 0.0528171, calcium = 0.0102821)

Arguments

sal

Salinity (PSU)

temp_k

Temperature (Kelvin)

magnesium

magnesium concentration in mol/kgsw. If None, modern is assumed (0.0528171). Should be the average magnesium concentration in seawater - a salinity correction is then applied to calculate the magnesium concentration in the sample.

calcium

calcium concentration in mol/kgsw. If None, modern is assumed (0.0102821). Should be the average calcium concentration in seawater - a salinity correction is then applied to calculate the magnesium concentration in the sample.