warsa.water package

Submodules

warsa.water.properties module

Hill_ratio_at_SP2(t)
USAGE:
Hill_ratio = Hill_ratio_at_SP2(t)
DESCRIPTION:
Calculates the Hill ratio, which is the adjustment needed to apply for Practical Salinities smaller than 2. This ratio is defined at a Practical Salinity = 2 and in-situ temperature, t using PSS-78. The Hill ratio is the ratio of 2 to the output of the Hill et al. (1986) formula for Practical Salinity at the conductivity ratio, Rt, at which Practical Salinity on the PSS-78 scale is exactly 2.
INPUT:
t = in-situ temperature (ITS-90) [ deg C ]
OUTPUT:
Hill_ratio = Hill ratio at SP of 2 [ unitless ]
AUTHOR:
Trevor McDougall and Paul Barker

VERSION NUMBER: 3.0 (26th March, 2011)

SP_from_C(C, t, p)

Calculates Practical Salinity, SP, from conductivity, C, primarily using the PSS-78 algorithm. Note that the PSS-78 algorithm for Practical Salinity is only valid in the range 2 < SP < 42. If the PSS-78 algorithm produces a Practical Salinity that is less than 2 then the Practical Salinity is recalculated with a modified form of the Hill et al. (1986) formula. The modification of the Hill et al. (1986) expression is to ensure that it is exactly consistent with PSS-78 at SP = 2. Note that the input values of conductivity need to be in units of mS/cm (not S/m). Parameters ———- C : array

conductivity [mS cm -1]
t : array
in-situ temperature [\(^\circ\) C (ITS-90)]
p : array
sea pressure [dbar] (i.e. absolute pressure - 10.1325 dbar)
SP : array
Practical Salinity [psu (PSS-78), unitless]

TODO References ———- .. [1] Culkin and Smith, 1980: Determination of the Concentration of

Potassium Chloride Solution Having the Same Electrical Conductivity, at 15C and Infinite Frequency, as Standard Seawater of Salinity 35.0000 (Chlorinity 19.37394), IEEE J. Oceanic Eng, 5, 22-23.
[2]Hill, K.D., T.M. Dauphinee & D.J. Woods, 1986: The extension of the Practical Salinity Scale 1978 to low salinities. IEEE J. Oceanic Eng., 11, 109 - 112.
[3]IOC, SCOR and IAPSO, 2010: The international thermodynamic equation of seawater - 2010: Calculation and use of thermodynamic properties. Intergovernmental Oceanographic Commission, Manuals and Guides No. 56, UNESCO (English), 196 pp. Appendix E.
[4]Unesco, 1983: Algorithms for computation of fundamental properties of seawater. Unesco Technical Papers in Marine Science, 44, 53 pp.
conductivity_to_salinity(c, t, p)

Convert conductivity into salinity, valid for -2 < t < 35°C and 2 < PSU < 42 (sea water) :param c: conductivity Sm-1 :param t: temperature °C :param p: decibar :return: salinity (PSS-78)

plot_conductivity_to_salinity()
plot_pure_water_density()
plot_water_density_comparison()
plot_water_density_temperature_and_pressure()
plot_water_density_temperature_and_salinity()
plot_water_saturation_vapour_pressure()
plot_water_saturation_vapour_pressure_comparison()
pure_water_density(t)

Equation according Tanaka, M., et. al; Recommended table for the density of water between 0 C and 40 C based on recent experimental reports, Metrologia, 2001, 38, 301-309 :param t: water temperature (°C) :return: water density in kg/m³

pure_water_density_craig(t)

Fofonoff, P. and R. C. Millard Jr (1983): Algorithms for computation of fundamental properties of seawater. Eq. 14

Parameters:t – water temperature (°C)
Returns:water density in kg/m³
secant_bulk_modulus(s, t, p)

Secant bulk modulus according to Fofonoff, P. and R. C. Millard Jr (1983): Algorithms for computation of fundamental properties of seawater. Equation 15 :param s: :param t: :param p: :return:

secant_bulk_modulus_pure_water(t)

Eq. 19

Parameters:t
Returns:
secant_bulk_modulus_zero_pressure(s, t)

Secant bulk modulus according to Fofonoff, P. and R. C. Millard Jr (1983): Algorithms for computation of fundamental properties of seawater. Equation 16 :param s: :param t: :return:

water_density(t=15.0, s=0.0, p=0.0)

Water density. Default: t=15°C, s=0, p=0 Fofonoff, P. and R. C. Millard Jr (1983): Algorithms for computation of fundamental properties of seawater. Eq. 7

Parameters:
  • t – temperature ni °C
  • s – salinity in PSS-78
  • p – pressure in decibars
Returns:

water_density_zero_pressure(s, t)
water_saturation_vapour_pressure(t)
water_saturation_vapour_pressure_cimo(t)

Returns the water vapour pressure according to World Meteorological Organization, Guide to Meteorological Instruments and Methods of Observation, Appendix 4B, WMO-No. 8 (CIMO Guide), Geneva 2008. :param t: water temperature (°C) :return: water vapour pressure in Pascal (Pa)

water_saturation_vapour_pressure_iapws(t)

Returns the water vapour pressure according to W. Wagner and A. Pruss (1992) J. Phys. Chem. Reference Data, 22, 783–787. See http://www.kayelaby.npl.co.uk/chemistry/3_4/3_4_2.html Valid only above the triple point. The IAWPS formulation 1995 (Wagner and Pruß, 2002) is valid in the temperature range 273.16 K < T < 647.096 K. See http://cires1.colorado.edu/~voemel/vp.html :param t: water temperature (°C) :return: water vapour pressure in Pascal (Pa)

water_saturation_vapour_pressure_table(t=None, columns=3, latex=False)
water_saturation_vapour_pressure_wmo(t)

Returns the water vapour pressure according to World Meteorological Organization, Technical Regulations, Basic Documents No. 2, Volume I - General meteorological standards and recommended practices, Appendix A, WMO-No. 49, Geneva 2011, updated 2012. :param t: water temperature (°C) :return: water vapour pressure in Pascal (Pa)

water_viscosity()

Module contents