Skip to content
Snippets Groups Projects
Commit cbc1f998 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added calculateAverageHourWattsPerSquareMeterFromJoulePerSquareCentimeter

Phew!
parent fda5fce7
Branches
No related tags found
No related merge requests found
...@@ -1507,4 +1507,16 @@ public class WeatherUtil { ...@@ -1507,4 +1507,16 @@ public class WeatherUtil {
return observations; return observations;
} }
/**
* Useful for conversion of e.g. solar radiation values
* @param joulePerSquareCentimeter
* @return
*/
public Double calculateAverageHourWattsPerSquareMeterFromJoulePerSquareCentimeter(Double joulePerSquareCentimeter)
{
// There are s10 000 square centimeters in a square meter
// Joule is watts * seconds so average output is hourly joule / 3600 seconds
return joulePerSquareCentimeter * 10000 / 3600;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment