Crate metfor[−][src]
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
constants |
Meteorlogical constants. |
Enums
MetForErr |
Error encountered during calculation. |
Functions
celsius_to_f |
Convert Celsius to Fahrenheit. |
celsius_to_kelvin |
Convert temperatures Celsius to Kelvin. |
dew_point_from_p_and_mw |
Given a mixing ratio and pressure, calculate the dew point temperature. If saturation is assumed this is also the temperature. |
f_to_celsius |
Convert Fahrenheit to Celsius |
frost_point_from_vapor_pressure_over_ice |
Get the dew point given the vapor pressure of water over ice. This function is the inverse of
|
kelvin_to_celsius |
Convert Kelvin temperatures to Celsius. |
latent_heat_of_condensation |
Latent heat of condensation for water. |
mixing_ratio |
Calculate the mixing ratio of water. |
pressure_and_temperature_at_lcl |
Calculate the temperature and pressure at the lifting condensation level (LCL). |
pressure_hpa_at_lcl |
Approximate pressure of the Lifting Condensation Level (LCL). |
rh |
Calculate the relative humidity with respect to liquid water. |
rh_ice |
Calculate the relative humidity with respect to ice. |
specific_humidity |
Calculate the specific humidity. |
temperature_c_from_theta |
Given a potential temperature and pressure, calculate the temperature of a parcel. |
temperature_c_from_theta_e_saturated_and_pressure |
Given the pressure and equivalent potential temperature, assume saturation and calculate the temperature. |
temperature_kelvin_at_lcl |
Approximate temperature at the Lifting Condensation Level (LCL). |
theta_e_kelvin |
Calculate equivalent potential temperature. |
theta_e_saturated_kelvin |
Calculate the equivalent potential temperature assuming a saturated parcel. |
theta_kelvin |
Calculate the potential temperature of a parcel. |
vapor_pressure_ice |
Get the vapor pressure over ice. |
vapor_pressure_liquid_water |
Get the vapor pressure over liquid water. |
virtual_temperature_c |
Virtual temperature in Celsius |
wet_bulb_c |
Calculate the web bulb temperature. |
Type Definitions
Result |
Shorthand for a result type. |