# gsw_SP_from_SR

    Practical Salinity from Reference Salinity

## Contents

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

## USAGE:

    SP = gsw_SP_from_SR(SR)

## DESCRIPTION:

    Calculates Practical Salinity from Reference 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
    Practical Salinity from Reference Salinity.

## INPUT:

    SR  =  Reference Salinity                                      [ g/kg ]

## OUTPUT:

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

## EXAMPLE:

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

    SP = gsw_SP_from_SR(SR)

    SP =

      34.386552667080714
      34.564513505458834
      34.696889296869848
      34.518231743800094
      34.405762086435850
      34.397799632817147

## AUTHOR:

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

## VERSION NUMBER:

    3.02 (17th November, 2012)

## 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, F.J. Millero, R. Pawlowicz and
     P.M. Barker, 2012: A global algorithm for estimating Absolute Salinity.
     Ocean Science, 8, 1117-1128.
      http://www.ocean-sci.net/8/1117/2012/os-8-1117-2012.pdf

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