/usr/share/pyshared/gsw/gibbs/isobaric.py is in python-gsw 3.0.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | # -*- coding: utf-8 -*-
from __future__ import division
from gsw.utilities import match_args_return
from .conversions import CT_from_pt
__all__ = [
#'latentheat_melting',
#'latentheat_evap_CT',
'latentheat_evap_t'
]
@match_args_return
def latentheat_evap_t(SA, t):
r"""Calculates latent heat, or enthalpy, of evaporation at p = 0 (the
surface). It is defined as a function of Absolute Salinity, SA, and
in-situ temperature, t, and is valid in the ranges 0 < SA < 40 g/kg and
0 < CT < 42 deg C. The errors range between -0.4 and 0.6 J/kg.
Parameters
----------
SA : array_like
Absolute salinity [g kg :sup:`-1`]
t : array_like
in situ temperature [:math:`^\circ` C (ITS-90)]
Returns
-------
latentheat_evap_t : array_like
latent heat of evaporation [J kg :sup:`-1`]
See Also
--------
TODO
Notes
-----
TODO
Examples
--------
TODO
References
----------
.. [1] 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.
See section 3.39.
Modifications:
2011-03-29. Paul Barker, Trevor McDougall & Rainer Feistel
"""
CT = CT_from_pt(SA, t)
return latentheat_evap_CT(SA, CT)
|