# gsw_depth_from_z

    depth from height

## Contents

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

## USAGE:

    depth = gsw_depth_from_z(z)

## DESCRIPTION:

    Calculates depth from height, z.

    Note. Height z is NEGATIVE in the ocean. i.e. Depth is -z.
     Depth is not used in the GSW computer software library.

## INPUT:

    z  =  height                                                       [ m ]

## OUTPUT:

    depth  =  depth                                                    [ m ]
    Note. At sea level z = 0, and since z (HEIGHT) is defined to be
      positive upwards, it follows that while z is positive in the
      atmosphere, it is NEGATIVE in the ocean.

## EXAMPLE:

    z = [   -10;   -50;  -125;  -250;  -600; -1000;]

    depth = gsw_depth_from_z(z)

    depth =

              10
              50
             125
             250
             600
            1000

## AUTHOR:

    Winston                                    [ god@teos-10.org ]

## VERSION NUMBER:

    3.01 (26th 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.

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