
Seawater density calculation
ebase_rho(temp, salt, P)
Rho (kg/m^3)
numeric for temperature (C)
numeric for salinity (PSU)
numeric for pressure above atmospheric (dbar)
Density of seawater is calculated according to the internationally accepted (UNESCO) equations. The standard error of the equation is 3.6 x 10-3 kg/m-3.
Millero, F.J., Poisson, A., 1981. International one-atmosphere equation of state of seawater. Deep Sea Research 28, 625-629. https://doi.org/10.1016/0198-0149(81)90122-9
temp <- c(10, 20, 30)
salt <- c(30, 35, 40)
ebase_rho(temp = temp, salt = salt, P = 0)
Run the code above in your browser using DataLab