Dew point calculation library
Add the JitPack repository in your root build.gradle at the end of repositories:
repositories {
maven {
url 'https://www.jitpack.io'
}
}
Add the dependency:
dependencies {
compile 'com.github.Pygmalion69:Ersa:0.3'
}
Temperature temperature = new Temperature(20, Scale.CELSIUS);
Temperature dewPoint = new Temperature(Scale.CELSIUS);
double relativeHumidity = 60;
Dew dew = new Dew();
double kelvin = temperature.getKelvin();
dewPoint.setKelvin(dew.dewPoint(relativeHumidity, kelvin));
double dewPointC = dewPoint.getTemperature();
A demo is included in the project.