Calculates the air density.
Usage
pres_air_density(...)
# S3 method for class 'weather_station'
pres_air_density(weather_station, ...)
# Default S3 method
pres_air_density(elev, temp, ...)Details
The air density (\(\rho\)) is calculated using the formula:
$$\rho = \frac{p \cdot 100}{R \cdot T}$$
where:
\(p\) is the air pressure in hPa,
\(R\) is the specific gas constant for air (287.05 m²/s²/K), and
\(T\) is the temperature in Kelvin (K).
This helper uses the package pressure and temperature defaults documented in
pres_p() and follows the Bendix (2004) thermodynamic-helper
background used elsewhere in the package.