R/convert_StoCl.R

Defines functions convert_StoCl

Documented in convert_StoCl

## -----------------------------------------------------------------------------
## Salinity-Chlorinity Conversion
## -----------------------------------------------------------------------------

convert_StoCl <- function(S=35) {
  if (any (S<0))
    stop ("Salinity should be >= 0")

  S / 1.80655 # chlorinity, in g/kg
}

Try the marelac package in your browser

Any scripts or data that you put into this service are public.

marelac documentation built on Sept. 25, 2023, 5:06 p.m.