Skip to content

Commit 4807e82

Browse files
i.evapo.mh: fix radiation conversion factor (#5600)
Previously, the radiation input (ra) was multiplied by 86.4, incorrectly boosting the energy input and resulting in overestimated evapotranspiration values. This PR corrects the unit conversion: Changes ra = ra * (24.0 * 60.0 * 60.0 / 1000.0); to ra = ra * (24.0 * 60.0 * 60.0 / 1000000.0); This matches the correct SI conversion where 1 W/m² = 0.0864 MJ/m²/day
1 parent 0b8ada1 commit 4807e82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

imagery/i.evapo.mh/mh_eto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ double mh_eto(double ra, double tavg, double tmax, double tmin, double p)
1212
if (tavg > 100.0) {
1313
tavg = tavg - 273.15; /*in case temperature is in Kelvin */
1414
}
15-
ra = ra * (24.0 * 60.0 * 60.0 / 1000.0); /*convert W -> MJ/d */
15+
ra = ra * (24.0 * 60.0 * 60.0 / 1000000.0); /*convert W -> MJ/d */
1616
result = 0.0013 * 0.408 * ra * (tavg + 17.0) * pow((td - 0.0123 * p), 0.76);
1717
return result;
1818
}

imagery/i.evapo.mh/mh_original.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ double mh_original(double ra, double tavg, double tmax, double tmin,
1313
if (tavg > 100.0) {
1414
tavg = tavg - 273.15; /*in case Temperature is in Kelvin */
1515
}
16-
ra = ra * (24.0 * 60.0 * 60.0 / 1000.0); /*convert W -> MJ/d */
16+
ra = ra * (24.0 * 60.0 * 60.0 / 1000000.0); /*convert W -> MJ/d */
1717
result = 0.0023 * 0.408 * ra * (tavg + 17.8) * pow(td, 0.5);
1818
return result;
1919
}

imagery/i.evapo.mh/mh_samani.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ double mh_samani(double ra, double tavg, double tmax, double tmin)
1111
if (tavg > 100.0) {
1212
tavg = tavg - 273.15; /*in case Temperature is in Kelvin */
1313
}
14-
ra = ra * (24.0 * 60.0 * 60.0 / 1000.0); /* convert W -> MJ/d */
14+
ra = ra * (24.0 * 60.0 * 60.0 / 1000000.0); /* convert W -> MJ/d */
1515
result =
1616
0.0023 * 0.408 * ra * pow(td, 0.5) * ((tmax + tmin) / 2 + 17.8) / 2.45;
1717
return result;

0 commit comments

Comments
 (0)