Commit a5b3521b authored by Eric Duminil's avatar Eric Duminil
Browse files

DRY

parent 6e254759
...@@ -202,11 +202,10 @@ public class TreeWaterDemand { ...@@ -202,11 +202,10 @@ public class TreeWaterDemand {
// NetLongwaveRadiation // NetLongwaveRadiation
// unit is apparently [MJ / (m².h)] // unit is apparently [MJ / (m².h)]
private static double rnl(double temperature, double actualVaporPressure, double shortWaveRadiation, double altitude, private static double rnl(double temperature, double actualVaporPressure, double rs, double altitude,
double extraterrestrialRadiation){ double extraterrestrialRadiation){
// divide by 24 for hourly // divide by 24 for hourly
double sigma = 4.903E-9 / 24; double sigma = 4.903E-9 / 24;
double rs = shortWaveRadiation;
double rso = (0.75 + 2 * 10E-5 * altitude) * extraterrestrialRadiation; double rso = (0.75 + 2 * 10E-5 * altitude) * extraterrestrialRadiation;
double rsRsoQuotient = 0.5; double rsRsoQuotient = 0.5;
if (rso != 0) { if (rso != 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment