PUBLIC function: calculates the gauge pressure (total pressure minus atmospheric pressure) from the depth (in m) and the latitude (in degrees: -90 to 90) and the atmospheric pressure (in bar)
Usage
gauge_p(d, lat=0, Pa=1.01325)
Arguments
d
water depth in meters
lat
latitude in degrees: -90 to 90, standard: 0
Pa
atmospheric pressure in bar, standard: 1 atm (at sea level)
Value
gauge pressure (total pressure minus atmospheric pressure) p in bars
Author(s)
Andreas F. Hofmann (a.hofmann@nioo.knaw.nl)
References
Fofonoff1983
Examples
gauge_p(100)
plot(gauge_p(1:100))
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(AquaEnv)
Loading required package: minpack.lm
Loading required package: deSolve
Attaching package: 'deSolve'
The following object is masked from 'package:graphics':
matplot
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AquaEnv/gauge_p.Rd_%03d_medium.png", width=480, height=480)
> ### Name: gauge_p
> ### Title: gauge_p
> ### Aliases: gauge_p
> ### Keywords: misc
>
> ### ** Examples
>
> gauge_p(100)
[1] 10.05769
> plot(gauge_p(1:100))
>
>
>
>
>
> dev.off()
null device
1
>