ECOdyagnostics/diagnostics/energetics.py
def internal_energy(self, S, T, p):
        """
        Return the specific internal energy of seawater as a function of Conservative Temperature, Absolute Salinity and
        pressure. It uses the gsw_interal_energy-function from the teos10/gsw sea water package.

        :param S: Absoulte Salinity
        :param T: In-situ Temperature (will be converted to Conservative temperature)
        :param p: sea water pressure p = P - P0 with P the full pressure and P0 the atmosphericc pressure
        :return: specitic internal energy
        """
        CT = gsw.conversions.CT_from_pt(T,S)
        SA = S
        return gsw.internal_energy(SA,CT,p)

        Return the specific internal energy of seawater as a function of Conservative Temperature, Absolute Salinity and
        pressure. It uses the gsw_interal_energy-function from the teos10/gsw sea water package.

        :param S: Absoulte Salinity
        :param T: In-situ Temperature (will be converted to Conservative temperature)
        :param p: sea water pressure p = P - P0 with P the full pressure and P0 the atmosphericc pressure
        :return: specitic internal energy
        
Return the specific internal energy of seawater as a function of Conservative Temperature, Absolute Salinity and
pressure. It uses the gsw_interal_energy-function from the teos10/gsw sea water package.
Return the specific internal energy of seawater as a function of Conservative Temperature Absolute Salinity and pressure . It uses the gsw_interal_energy - function from the teos10 / gsw sea water package .
def internal_energy(self, S, T, p):
        CT = gsw.conversions.CT_from_pt(T,S)
        SA = S
        return gsw.internal_energy(SA,CT,p)
def internal_energy ( self , S , T , p ) : CT = gsw . conversions . CT_from_pt ( T , S ) SA = S return gsw . internal_energy ( SA , CT , p )
Return the specific internal energy of seawater as a function of Conservative Temperature, Absolute Salinity and
pressure.
Return the specific internal energy of seawater as a function of Conservative Temperature Absolute Salinity and pressure .
"""
        Return the specific internal energy of seawater as a function of Conservative Temperature, Absolute Salinity and
        pressure. It uses the gsw_interal_energy-function from the teos10/gsw sea water package.

        :param S: Absoulte Salinity
        :param T: In-situ Temperature (will be converted to Conservative temperature)
        :param p: sea water pressure p = P - P0 with P the full pressure and P0 the atmosphericc pressure
        :return: specitic internal energy
        """
specitic internal energy
specitic internal energy
self
S
None
T
In-situ Temperature (will be converted to Conservative temperature)
In - situ Temperature ( will be converted to Conservative temperature )
p
sea water pressure p = P - P0 with P the full pressure and P0 the atmosphericc pressure
sea water pressure p = P - P0 with P the full pressure and P0 the atmosphericc pressure