gsw_grav
  Gravitational acceleration
  Contents
  
  USAGE:
  grav = gsw_grav(lat,{p})
  DESCRIPTION:
  Calculates acceleration due to gravity as a function of latitude and as
a function of pressure in the ocean.
  
INPUT:
lat  =  latitude in decimal degress north                [ -90 ... +90 ]
OPTIONAL:  
p    =  sea pressure                                            [ dbar ]
          (ie. absolute pressure - 10.1325 dbar)  
(If pressure is not given then it is assumed that pressure = 0 dbar).
p (if provided) may have dimensions 1x1 or Mx1 or 1xN or MxN,
where lat is MxN.)
OUTPUT:
grav  =  gravitational acceleration                            [ m/s^2 ]
EXAMPLE:
lat = [ -90; -60; -30; 0;]
p   =    0;
grav = gsw_grav(lat,p)
Note. If the pressure is zero then the following is also valid
grav = gsw_grav(lat)
grav =
   9.832186205884799
   9.819178859991149
   9.793249257048750
   9.780327000000000
 AUTHOR:
 Trevor McDougall & Paul Barker         [ help@teos-10.org ]
 VERSION NUMBER:
 3.01  (13th 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 appendix D of this TEOS-10 Manual.
  Moritz (2000) Goedetic reference system 1980. J. Geodesy,74,128-133.
  Saunders, P.M., and N.P. Fofonoff (1976) Conversion of pressure to
 depth in the ocean. Deep-Sea Res.,pp. 109 - 111.
 The software is available from http://www.TEOS-10.org