# gsw_t_from_pt0

`in-situ temperature from potential temperature with p_ref = 0 dbar`

## USAGE:

`t = gsw_t_from_pt0(SA,pt0,p)`

## DESCRIPTION:

```Calculates in-situ temperature from potential temperature with a
reference pressure of 0 dbar of seawater.```
```It is also possible to calculate in-situ temperature from potential
temparature using the function gsw_pt_from_t.  In this case it would be
called with Absolute Salinity, SA, potential temperature referenced to
0 dbar, pt0, and the in-situ pressure (i.e. gsw_pt_from_t(SA,pt0,0,p)). ```
 ```Click for a more detailed description of calculating in-situ temperature from potential temperature.```

## INPUT:

```SA  =  Absolute Salinity                                        [ g/kg ]
pt0 =  potential temperature                                   [ deg C ]
with reference sea pressure (pr) = 0 dbar.
Note. The reference sea pressure of the output, pt0, is zero dbar.
p   =  sea pressure                                             [ dbar ]
( i.e. absolute pressure - 10.1325 dbar )```
```SA & pt0 need to have the same dimensions.
p may have dimensions 1x1 or Mx1 or 1xN or MxN, where SA and pt0 are MxN.```

## OUTPUT:

`t   =  in-situ temperature (ITS-90)                            [ deg C ]`

## EXAMPLE:

```SA = [34.7118; 34.8915; 35.0256; 34.8472; 34.7366; 34.7324;]
pt0 = [28.8099; 28.4392; 22.7862; 10.2262;  6.8272;  4.3236;]
p =  [     10;      50;     125;     250;     600;    1000;]```
`t = gsw_t_from_pt0(SA,pt0,p)`
`t =`
```  28.812304839034994
28.451122322781689
22.811570627670207
10.255668503647893
6.884260601542640
4.402682363977228```

## AUTHOR:

`Trevor McDougall and Paul Barker       [ help@teos-10.org ]`

## VERSION NUMBER:

`3.05 (16th February, 2015)`

## REFERENCES:

```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.  Available from the TEOS-10 web site.
See sections 3.1 and 3.3 of this TEOS-10 Manual.```
`The software is available from http://www.TEOS-10.org`