In GHResultsRead.cs, you can find negative values in val_t[t] for case 7. It must already be in results.I_hourly
case 7: // [W] total
for (int i = 0; i < results.I_hourly.RowCount; i++)
{
double[] val_t = new double[results.I_hourly.ColumnCount];
for (int t = 0; t < results.I_hourly.ColumnCount; t++)
{
val_t[t] = results.I_hourly[i, t];
}
valin2.Add(val_t);
}
...problem comes from negative values for diffuse reflections (p.Irefl_diff) in sensor points irradiance calculation, presumably in SolarModel and not in GHSolar?
Bug_NegativeIrradiance.zip
In
GHResultsRead.cs
, you can find negative values inval_t[t]
for case 7. It must already be inresults.I_hourly