fun_density: Seawater density calculation

View source: R/fun_density.R

fun_densityR Documentation

Seawater density calculation

Description

Seawater density calculation

Usage

fun_density(temp, salt, P)

Arguments

temp

numeric for temperature

salt

numeric for salinity

P

numeric for pressure above atmospheric (dbar)

Details

Adapted from Matlab code by Jill Arriola, 2021-03-16

THIS FUNCTION COMPUTES DENSITY OF SEAWATER ACCORDING TO THE INTERNATIONALLY ACCEPTED (UNESCO) EQUATIONS.

Reference: MILLERO AND POISSON, DEEP-SEA RESEARCH, 28A, 625-629, 1981.

THE STANDARD ERROR OF THIS EQUATION IS 3.6 X 10-3 KG/M-3.

INPUTS ARE temp = Water Temperature (DEG. C) salt = Salinity (PPT) P = Pressure above atmospheric (dbar)

OUTPUT IS RHO = Density (kg/m^3)

Value

RHO (kg/m^3)


jmarriola/fwoxy documentation built on Jan. 30, 2023, 5:13 a.m.