gsw_z_from_p {gsw} | R Documentation |
Computation of height (above sea level) from pressure, using the 75-term equation for specific volume.
gsw_z_from_p(p, latitude)
p |
sea pressure [dbar], i.e. absolute pressure [dbar] minus 10.1325 dbar |
latitude |
latitude in decimal degrees, positive to the north of the equator. (This
is called |
The present R function works with a wrapper to a C function contained within the GSW-C system (Version 3.05-4 dated 2017-08-07, available at https://github.com/TEOS-10/GSW-C, as git commit '5b4d959e54031f9e972f3e863f63e67fa4f5bfec'), which stems from the GSW-Fortran system (https://github.com/TEOS-10/GSW-Fortran) which in turn stems from the GSW-Matlab system (https://github.com/TEOS-10/GSW-Matlab). Consult http://www.teos-10.org to learn more about these software systems, their authorships, and the science behind it all.
height [ m ]
http://www.teos-10.org/pubs/gsw/html/gsw_z_from_p.html
Other things related to depth: gsw_p_from_z
z <- gsw_z_from_p(c(10, 50, 125, 250, 600,1000), 4) expect_equal(z/1e2, c(-0.099445834469453, -0.497180897012550, -1.242726219409978, -2.484700576548589, -5.958253480356214, -9.920919060719987))