If you don't supply MinRH for your landscape, then RHmin=-99, and then landscapeAverageRelHumidity ends up being like -55.
landscapeAverageRelHumidity += weatherData.DailyMinRH[day] * climateRegionFractionSites;
So I'm proposing these code changes at L314 of PlugIn:
if (weatherData.DailyMinRH[day] == -99.0)
{
double relativeHumidity = AnnualClimate_Daily.ConvertSHtoRH(weatherData.DailySpecificHumidity[day], weatherData.DailyTemp[day]);
if (relativeHumidity > 100)
{
relativeHumidity = 100.0;
}
landscapeAverageRelHumidity += relativeHumidity climateRegionFractionSites;
}
else
{
landscapeAverageRelHumidity += weatherData.DailyMinRH[day] climateRegionFractionSites;
}
// modelCore.UI.WriteLine(" Fire Weather Check Daily={0}, Average={1}", weatherData.DailyFireWeatherIndex[day], landscapeAverageFireWeatherIndex);
}
If you don't supply MinRH for your landscape, then RHmin=-99, and then landscapeAverageRelHumidity ends up being like -55. landscapeAverageRelHumidity += weatherData.DailyMinRH[day] * climateRegionFractionSites;
So I'm proposing these code changes at L314 of PlugIn: if (weatherData.DailyMinRH[day] == -99.0) { double relativeHumidity = AnnualClimate_Daily.ConvertSHtoRH(weatherData.DailySpecificHumidity[day], weatherData.DailyTemp[day]); if (relativeHumidity > 100) { relativeHumidity = 100.0; } landscapeAverageRelHumidity += relativeHumidity climateRegionFractionSites; } else { landscapeAverageRelHumidity += weatherData.DailyMinRH[day] climateRegionFractionSites; } // modelCore.UI.WriteLine(" Fire Weather Check Daily={0}, Average={1}", weatherData.DailyFireWeatherIndex[day], landscapeAverageFireWeatherIndex); }