WeatherCalc 1.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package WeatherCalc --version 1.2.2                
NuGet\Install-Package WeatherCalc -Version 1.2.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WeatherCalc" Version="1.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WeatherCalc --version 1.2.2                
#r "nuget: WeatherCalc, 1.2.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WeatherCalc as a Cake Addin
#addin nuget:?package=WeatherCalc&version=1.2.2

// Install WeatherCalc as a Cake Tool
#tool nuget:?package=WeatherCalc&version=1.2.2                

Dies ist eine Klassenbibliothek, die im Rahmen der FIA Ausbildung entstand.

Diese Klassenbibliothek dient der Ermittlung von:

  • Taupunkt
  • Hitzeindex
  • Windchill
  • Wolkenuntergrenze

A class library that was created as part of the FIA ​​training.

This class library computes

  • Dew point
  • Heat Index
  • Windchill
  • Cloud base

Quellcode / source code

namespace FIA.Lueck
{
    /// <summary>
    /// Klasse mit "Super"-Wettermethoden 😉
    /// </summary>
    public static class WeatherCalc
    {
        //Documentation comments - Dokumentationskommentare
        //Once in English
        /// <summary>
        /// Determines the dew point at a given humidity and temperature.
        /// </summary>
        /// <param name="Temperature">Temperature in °C >= 0</param>
        /// <param name="Humidity">Relative humidity in %</param>
        /// <returns>Dew point in °C</returns>
        public static double DewPoint(double Temperature, double Humidity)
        {
            //https://www.wetterochs.de/wetter/feuchte.html
            double a = 7.5, b = 237.3;
            double SDD = 6.1078 * Math.Pow(10, a * Temperature / (b + Temperature));
            double DD = Humidity / 100 * SDD;
            double v = Math.Log10(DD / 6.1078);
            double TD = b * v / (a - v);
            return TD;
        }

        //Mal auf Deutsch
        /// <summary>
        /// Ermittlung die Wolkenhöhe.
        /// </summary>
        /// <param name="Temperatur">Temperatur in °C</param>
        /// <param name="Taupunkt">Taupunkt in °C</param>
        /// <returns>Die Wolkenhöhe in m</returns>
        public static double Wolkenhöhe(double Temperatur, double Taupunkt)
        {
            //https://de.wikipedia.org/wiki/Kondensationsniveau
            return (Temperatur - Taupunkt) * 125;
        }

        /// <summary>
        /// Ermittlung des Windchill für eine gegebene Temperatur bei einer gegebenen Windgeschwindigkeit.
        /// Gilt nur für Temperaturen <= 10°C
        /// </summary>
        /// <param name="Temperature">Lufttemperatur in Celsius</param>
        /// <param name="WindSpeed">Windgeschwindigkeit in km/h</param>
        /// <returns>Den Windchill</returns>
        public static double Windchill(double Temperature, double WindSpeed)
        {
            //https://de.wikipedia.org/wiki/Windchill
            if (WindSpeed < 5 || Temperature > 10)
            {
                return double.MaxValue;
            }
            double Windchill = 13.12 + 0.6215 * Temperature + (0.3965 * Temperature - 11.37) * Math.Pow(WindSpeed, 0.16);
            return Windchill;
        }

        /// <summary>
        /// Determination of the heat index at a given temperature and humidity.
        /// </summary>
        /// <param name="Temperature">Temperature in °C >= 20</param>
        /// <param name="Humidity">Relative humidity in %</param>
        /// <returns>Heat-Index</returns>
        public static double HeatIndex(double Temperature, double Humidity)
        {
            //https://de.wikipedia.org/wiki/Hitzeindex
            double c1 = -8.784695, c2 = 1.61139411, c3 = 2.338549, c4 = -0.14611605, c5 = -1.2308094e-2;
            double c6 = -1.6424828e-2, c7 = 2.211732e-3, c8 = 7.2546e-4, c9 = -3.582e-6;
            return c1 + 
                   c2 * Temperature + 
                   c3 * Humidity + 
                   c4 * Temperature * Humidity + 
                   c5 * Temperature * Temperature + 
                   c6 * Humidity * Humidity + 
                   c7 * Temperature * Temperature * Humidity + 
                   c8 * Temperature * Humidity * Humidity + 
                   c9 * Temperature * Temperature * Humidity * Humidity;
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.3 742 1/20/2023
1.2.2 676 1/19/2023
1.2.1 674 1/19/2023