Crate weather_utils
source ·Expand description
§weather-utils
This crate includes a set of common and useful weather-related computations, such as the temperature unit conversions, computations of humidity/temperature related values (absolute humidity, dew point, heat index), computations of barometric pressure related values (altitude)…
If a computation you need is not present, please feel free to ask for it, or even better contribute it ;-)
§Features
- Conversion from °C to °F.
- Conversion from °F to °C.
- Computation of absolute humidity from temperature and relative humidity.
- Computation of altitude from barometric pressure and temperature.
- Computation of dew point.
- Computation of heat index.
§Documentation:
§License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Structs§
- The combination of the temperature and the barometric pressure.
- The combination of the temperature and the relative humidity.
Enums§
- The temperature unit to use in the measurements.
Functions§
- Computes the absolute humidity value (in g/m³), given the temperature and the relative humidity.
- Compute the altitude (in m), given the barometric pressure and the temperature.
- Converts a temperature in °C to °F.
- Converts a temperature in °F to °C.