# gsw_SR_from_SP

    Reference Salinity from Practical Salinity

## Contents

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

## USAGE:

    SR = gsw_SR_from_SP(SP)

## DESCRIPTION:

    Calculates Reference Salinity from Practical Salinity.  Since SP is
    non-negative by definition, this function changes any negative
    input values of SP to be zero.

    Click for a more detailed description of calculating
    Reference Salinity from Practical Salinity.

## INPUT:

    SP  =  Practical Salinity  (PSS-78)                        [ unitless ]

## OUTPUT:

    SR  =  Reference Salinity                                      [ g/kg ]

## EXAMPLE:

    SP =   [34.5487; 34.7275; 34.8605; 34.6810; 34.5680; 34.5600;]

    SR = gsw_SR_from_SP(SP)

    SR =

      34.711611927085727
      34.891255045714303
      35.024882197714305
      34.844535778285724
      34.731002934857159
      34.722965211428587

## AUTHOR:

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

## VERSION NUMBER:

    3.01 (23rd May, 2011)

## 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 2.5 and appendices A.4 and A.5 of this TEOS-10 Manual.

    McDougall, T.J., D.R. Jackett and F.J. Millero, 2010: An algorithm
     for estimating Absolute Salinity in the global ocean.  Submitted to
     Ocean Science. A preliminary version is available at Ocean Sci. Discuss.,
     6, 215-242.
     http://www.ocean-sci-discuss.net/6/215/2009/osd-6-215-2009-print.pdf

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