forked from dankelley/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
airRho.Rd
36 lines (25 loc) · 1013 Bytes
/
airRho.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\name{airRho}
\alias{airRho}
\title{Air density}
\description{Compute, \eqn{\rho}{rho}, the \emph{in-situ} density of air.}
\usage{airRho(temperature, pressure, humidity)}
\arguments{
\item{temperature}{\emph{in-situ} temperature [\eqn{^\circ}{deg}C]}
\item{pressure}{pressure in Pa (NOT kPa) -- ignored at present}
\item{humidity}{ignored at present}
}
\details{This will eventually be a proper equation of state, but for now
it's just returns something from wikipedia (i.e. not trustworthy), and
not using humidity.}
\value{\emph{In-situ} air density [kg/m\eqn{^3}{^3}].}
\examples{
degC <- seq(0,30,length.out=100)
p <- seq(98,102,length.out=100) * 1e3
contour(x=degC, y=p, z=outer(degC,p,airRho), labcex=1)
}
\references{
National Oceanographic and Atmospheric Agency, 1976. U.S. Standard
Atmosphere, 1976. NOAA-S/T 76-1562.
(Available as of 2010-09-30 at \url{http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770009539_1977009539.pdf}).}
\author{Dan Kelley}
\keyword{misc}