# gsw_temps_maxdensity

    temperatures of maximum density of seawater

## Contents

- USAGE:
- DESCRIPTION:
- INPUT:
- OUTPUT:
- EXAMPLE:
- AUTHOR:
- VERSION NUMBER:
- REFERENCES:

## USAGE:

    [t_maxden, pt_maxden, CT_maxden] = gsw_temps_maxdensity(SA,p)

## DESCRIPTION:

    Calculates the temperatures of maximum density of seawater. This
    function returns the in-situ, potential, and Conservative temperatures
    at which the density of seawater is a maximum, at given Absolute
    Salinity, SA, and sea pressure, p (in dbar).

    Click for a more detailed description of calculating the
    temperatures of maximum density.

## INPUT:

    SA =  Absolute Salinity                                         [ g/kg ]
    p  =  sea pressure                                              [ dbar ]
          (ie. absolute pressure - 10.1325 dbar)

    p may have dimensions 1x1 or Mx1 or 1xN or MxN, where SA is MxN.

## OUTPUT:

    t_maxden   =  In-situ temperature at which the density of seawater
                  is a maximum for given Absolute Salinity and pressure,
                  measured on the ITS-90 temperature scale.        [ deg C ]
    pt_maxden  =  potential temperature at which the density of seawater
                  is a maximum for given Absolute Salinity and pressure.
                  This is the potential temperature referenced to a sea
                  pressure of 0 dbar.                              [ deg C ]
    CT_maxden  =  Conservative Temperature at which the density of
                  seawater is a maximum for given Absolute Salinity
                  and pressure.                                    [ deg C ]

## EXAMPLE:

    SA = [34.7118; 34.8915; 35.0256; 34.8472; 34.7366; 34.7324;]
    p =  [     10;      50;     125;     250;     600;    1000;]

    [t_maxden, pt_maxden, CT_maxden] = gsw_temps_maxdensity(SA,p)

    t_maxden =

    -3.725008913916380
    -3.853714292562061
    -4.051433177642653
    -4.295542513200469
    -5.074746618871896
    -6.011701971231014

    pt_maxden =

    -3.725007817485227
    -3.853686822871752
    -4.051260804552126
    -4.294848434851046
    -5.070673022022400
    -6.000138120066936

    CT_maxden =

    -3.720779524452287
    -3.849111898670119
    -4.046292804691113
    -4.290063909787930
    -5.065854290972595
    -5.995131932081709

## AUTHOR:

    Trevor McDougall & Paul Barker     [ help_gsw@csiro.au ]

## VERSION NUMBER:

    2.0 (26th August, 2010)

## 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 section 3.42 of this TEOS-10 Manual.

    The software is available from http://www.TEOS-10.org