FV3 Bundle
gsw_t_from_ct.f90
Go to the documentation of this file.
1 !==========================================================================
2 elemental function gsw_t_from_ct (sa, ct, p)
3 !==========================================================================
4 !
5 ! Calculates in-situ temperature from Conservative Temperature of seawater
6 !
7 ! sa : Absolute Salinity [g/kg]
8 ! ct : Conservative Temperature [deg C]
9 !
10 ! gsw_t_from_ct : in-situ temperature [deg C]
11 !--------------------------------------------------------------------------
12 
14 
15 use gsw_mod_kinds
16 
17 implicit none
18 
19 real (r8), intent(in) :: sa, ct, p
20 
21 real (r8) :: gsw_t_from_ct
22 
23 real (r8) :: pt0
24 
25 real (r8), parameter :: p0 = 0.0_r8
26 
27 pt0 = gsw_pt_from_ct(sa,ct)
28 gsw_t_from_ct = gsw_pt_from_t(sa,pt0,p0,p)
29 
30 return
31 end function
32 
33 !--------------------------------------------------------------------------
elemental real(r8) function gsw_t_from_ct(sa, ct, p)