Skip to content

Pygmalion69/Ersa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ersa

Dew point calculation library

Release Build Status

Gradle

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'
}

Example

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();

Demo

A demo is included in the project.

Dew Point Demo