Expand description
Meteorological constants and formulas.
I investigated using some sort of dimensional analysis via types with a crate like uom or dimensioned. However after experimentation, neither of these work well for a library. Choosing to use one would force that library on the users of this library. In the future I may make a feature to use one or the other of these crates.
Re-exports
pub use constants::*;
Modules
Meteorlogical constants.
Enums
Error encountered during calculation.
Functions
Convert Celsius to Fahrenheit.
Convert temperature from Celsius to Kelvin.
Given a mixing ratio and pressure, calculate the dew point temperature. If saturation is
assumed this is also the temperature.
Convert Fahrenheit to Celsius
Get the frost point given the vapor pressure of water over ice. This function is the inverse of
vapor_pressure_ice
.Convert Kelvin temperatures to Celsius.
Latent heat of condensation for water.
Calculate the mixing ratio of water.
Calculate the temperature and pressure at the lifting condensation level (LCL).
Approximate pressure of the Lifting Condensation Level (LCL).
Calculate the relative humidity with respect to liquid water.
Calculate the relative humidity with respect to ice.
Convert wind speed (wind direction is the direction the wind is blowing from) into
U-V components.
Calculate the specific humidity.
Given a potential temperature and pressure, calculate the temperature.
Given the pressure and equivalent potential temperature, assume saturation and calculate the
temperature.
Calculate equivalent potential temperature.
Calculate potential temperature assuming a 1000 hPa reference level.
Convert U-V wind speeds to speed and direction.
Get the vapor pressure over ice.
Get the vapor pressure over liquid water.
Virtual temperature in Celsius
Calculate the web bulb temperature.
Type Definitions
Shorthand for a result type.