You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Soiling losses are known to show a dependence on angle of incidence, but pvlib's soiling loss models don't consider AOI.
Describe the solution you'd like
Implement a model that calculates an adjustment factor, analogous to IAM, that converts soiling loss at AOI=0 to soiling loss at any angle of incidence.
Additional context
One wrinkle: soiling loss models tuned to field measurements probably don't calculate soiling loss at AOI=0, but rather some kind of "average" AOI that depends on both the sun position and the weather conditions (sun AOI matters less in cloudy climates). Conceptually, it seems like soiling loss ought to be considered a combination of direct and diffuse components the same way IAM is. It's not obvious to me how best to apply an AOI correction factor to empirical soiling models.
I've read the paper and I don't dislike the proposed model. The only issues I have with it are:
Do we want to provide some kind of fitting functions so the two parameters can be obtained from some kind of curve fit? The paper approach is for some exact soiling values but in the field they change with the weather.
In this case, what data can/should I make use of?
The $SL_0$ can be left up to the user but I can't think of how to get it from this kind of data.
I have in mind this data could be two flat reference cells, one that cleans itself (or is cleaned) everyday and another one that gets soiled normally. So at AOI=0º, $SL_0$ is direct. For other cases, I'm not sure.
Rearranging (7) as $SL_\theta(\theta) = SL_0 · (sec \theta)^P [\frac{1 - F_n/IAM}{1 - F_n}]$ there is another parameter, $SL_0$. Whether this works or not, I'm 0% sure.
Data testing - I can do the average functional test of datatypes and some numbers, but they won't guarantee scientific rigour. Maybe from the graphs I can approximate some values...
I don't have access to this paper, but I do recall that Martin & Ruiz discussed representing the dirty modules with a different a_r. That wouldn't accommodate losses at normal incidence.
Have there been any new developments/publications on this topic? It's pretty relevant since some soiling measurement approaches don't capture this properly.
Thanks @williamhobbs ! A soiling measurement system that gives you one value per day will not be enough to determine which curve you are on. This is a subject of discussion for the revision of IEC 61724-1.
I was revisiting this and think that I've put together something close to what's in Guo 2026. I think the only difference is that I'm using pvlib.iam.physical because it's easy, and Guo used an empirical IAM table.
frompvlib.toolsimportcosdimportpvlibimportnumpyasnpimportmatplotlib.pyplotasplt# based on Guo 2026, https://doi.org/10.1016/j.solener.2025.114253defiam_soil_guo(aoi, SL0, Fn, P):
costheta=np.maximum(0, cosd(aoi)) # always >= 0sec=1/costhetaiam=pvlib.iam.physical(aoi) # Guo used a table of imperical values, Table 2SL_mod= (sec**P) * ((1- (Fn/iam)) / (1-Fn)) *SL0returnSL_mod# range of aoi valuesaoi=np.arange(0, 80)
# parameters to match Guo 2026 Fig. 7a, left column (soiling loss 0.058)P=1Fn=0.7SL0=0.058# calculate modeled soiling lossSL_mod=iam_soil_gou(aoi, SL0, Fn, P)
# plot itplt.plot(aoi, SL_mod)
plt.ylabel('Soiling loss')
plt.xlabel('aoi (deg.)')
plt.show()
And the fancy "manually overlay screenshots in powerpoint with transparency and stretching" comparison:
The large negative values surprised me. But then, actually reading some of Guo 2026, I saw
It should be noted that the current model yields negative values at very large AOI (e.g., AOI > 80°). This artifact results from treating Fn as a constant, even though Fn – the ratio of scattered light reaching the PV cell to the normal-incidence transmittance [16] – should decrease at high AOI due to dust particles shading one another. Because solar irradiance is already very low at such large AOI values, the resulting inaccuracy is acceptable for typical applications when the irradiance-weighted soiling loss is of interest. Further work is needed if accurate modeling at high AOI is required.
If I were to continue working with this on my own, I would clip the lower bound of modeled aoi-dependent soiling loss to be no lower than the nominal soiling loss (SL0).
If further work is needed, is it ready for pvlib? On the other hand, there are a lot of models that could use more work so that may not be the right question. On the other hand if he is actively working on it...
@adriesse, I think it's useful now, with the modification of clipping the loss at a minimum of the nominal soiling. If that sort of modification is ok for pvlib, then I think it could be considered ready.
Without that modification, it could return very bad (large negative) results, which seems like a bad fit for pvlib.
I'll add that modifying the function with a "floor" is somewhat similar to the addition of the cap_adjustment option to pvsystem.pvwatts_dc nonlinear adjustment. That cap was not in the original reference, but Cliff approved that addition (here). A key difference is that what I'm suggesting here would not be optional.
On the other hand if he is actively working on it...
I don't know if anything is still being worked on. I guess we could send an email and ask...
I agree with @williamhobbs that the model is useful as is, and that clipping the loss is appropriate (with notes in the docstring).
I would build the empirical IAM table into the pvlib code and give the user an option to substitute a preferred IAM model. The p and F parameter values in the paper are hitched to the empirical IAM model, and I'm inclined to ask that pvlib code include default p and F from the paper. P could be interpolated from the paper's Table 3; open to other ideas here.
This might be relevant in terms of a formulating a consistent implementation of empirical IAM functions across multiple applications in pvlib: #2050
Note: The reason I rail on and on about simpler interfaces in pvlib is that it makes seeing one's contributions across the finish line way easier, especially as the code base grows. Of course, it also reduces the mental load on the consumers, even though many of them don't realize how much of a good thing that is, esp. once they have their particular computational workflow set up in the loosey-goosey world of Python.
I agree that the IAM table from the paper should be the default, and it should also default to the paper’s Fn and P.
For P, I think using the values from Table 3 and interpolating probably makes the most sense. Based on the points in fig 5 and the regression used to get the values in Table 3, it seems reasonable to somehow extrapolate to zero soiling (SL0), but to fix the P value at 0.8 for SL0 greater than 15%. But I haven’t tested anything there, so I’m very open to suggestions a.
And clarify it all in the doc string.
And of course allowing custom IAM, Fn, and P should be included.
I'm not sure how much this matters, but I can't seem to confirm where the empirical IAM values in Table 2 of Guo 2026 came from. I don't have a copy of the manuscript for ref 19, but slides are online*, and I don't see anything that matches Table 2. Ref 18 is open access (just the data, the related paper** is not open access), and includes lots of measurements, but I also can't find a match there.
I am looking at a copy of [19] and I don't see those numbers. I think they may have been derived from the supplementary data for this paper: https://doi.org/10.1002/pip.3365 But the DTU server seems to have lost that file; maybe @AdamRJensen can help?
Also looks like it's okay to post here, AOIRR2020RawData.csv, with the following note:
If you use this data in a published work, please cite the dataset and the following publication:
Riedel-Lyngskær N, Santamaria Lancia AA, Plag F, et al. Interlatoratory comparison of angular-dependent photovoltaic device measurements: Results and impact on energy rating. Prog Photovolt Res Appl. 2020. https://doi.org/10.1002/pip.3365
Edit: Brevity, added script output and PR proposal
The Table 2 values come from the DTU dataset [18] linked above (the table header only cites [19]). They're the mean of Lab A's four samples and match to 7 decimals. The 0 at 90° is Guo's addition.
Fn and P were fitted with this table, so I'd keep it as the default and just cite the dataset. Compared with iam.physical in @williamhobbs's sketch, the modeled loss differs by up to 2% through 65° but by about 16% at 75°.
For P, I don't think I'd extrapolate the Fig. 5 fit (P = 31.48·SL0² − 9.88·SL0 + 1.57). It bottoms out at about 0.80 near SL0 = 0.157 and goes up to 1.57 at SL0 = 0. Interpolating Table 3 with np.interp gives P = 1.15 below 0.05 and P = 0.80 above 0.15, which matches the 0.8 cap suggested above. Another option: Table 5 shows P = 1 (or 0.9) with Fn = 0.7 keeps daily loss within 6%.
To start, I'd propose one function in pvlib/soiling.py taking aoi and the normal-incidence soiling loss, with Table 2 as the default IAM (or a user-supplied one), P from Table 3, Fn = 0.7, and the SL0 floor. The docstring would warn against passing kimber/hsu output, since field-measured losses already include the angle effect.
Two questions I have on this; should aoi ≥ 90° return SL0 or NaN, and should P default to Table 3 or the simpler P = 1?
I've worked on how tilt angle affects soiling buildup and rain cleaning, so this is interesting to me. @williamhobbs since you wrote the prototype, are you planning a PR? If not, I'd be interested in building once we settle the defaults.
Activity
echedey-ls commentedon Mar 2, 2024
I've read the paper and I don't dislike the proposed model. The only issues I have with it are:
I have in mind this data could be two flat reference cells, one that cleans itself (or is cleaned) everyday and another one that gets soiled normally. So at AOI=0º,
Rearranging (7) as
mikofski commentedon Mar 2, 2024
ICYMI: @wholmgren , @abhisheksparikh , @mdeceglie
adriesse commentedon Mar 4, 2024
I don't have access to this paper, but I do recall that Martin & Ruiz discussed representing the dirty modules with a different a_r. That wouldn't accommodate losses at normal incidence.
adriesse commentedon Apr 3, 2026
Have there been any new developments/publications on this topic? It's pretty relevant since some soiling measurement approaches don't capture this properly.
williamhobbs commentedon Apr 6, 2026
I'm generally interested in this concept.
Here's an updated paper by Guo with outdoor validation: https://doi.org/10.1016/j.solener.2025.114253
adriesse commentedon Apr 9, 2026
Thanks @williamhobbs ! A soiling measurement system that gives you one value per day will not be enough to determine which curve you are on. This is a subject of discussion for the revision of IEC 61724-1.
williamhobbs commentedon Jun 26, 2026
I was revisiting this and think that I've put together something close to what's in Guo 2026. I think the only difference is that I'm using pvlib.iam.physical because it's easy, and Guo used an empirical IAM table.
And the fancy "manually overlay screenshots in powerpoint with transparency and stretching" comparison:
The large negative values surprised me. But then, actually reading some of Guo 2026, I saw
If I were to continue working with this on my own, I would clip the lower bound of modeled aoi-dependent soiling loss to be no lower than the nominal soiling loss (SL0).
adriesse commentedon Jun 29, 2026
If further work is needed, is it ready for pvlib? On the other hand, there are a lot of models that could use more work so that may not be the right question. On the other hand if he is actively working on it...
williamhobbs commentedon Jun 29, 2026
@adriesse, I think it's useful now, with the modification of clipping the loss at a minimum of the nominal soiling. If that sort of modification is ok for pvlib, then I think it could be considered ready.
Without that modification, it could return very bad (large negative) results, which seems like a bad fit for pvlib.
I'll add that modifying the function with a "floor" is somewhat similar to the addition of the
cap_adjustmentoption to pvsystem.pvwatts_dc nonlinear adjustment. That cap was not in the original reference, but Cliff approved that addition (here). A key difference is that what I'm suggesting here would not be optional.I don't know if anything is still being worked on. I guess we could send an email and ask...
cwhanse commentedon Jul 3, 2026
@williamhobbs nice work.
I agree with @williamhobbs that the model is useful as is, and that clipping the loss is appropriate (with notes in the docstring).
I would build the empirical IAM table into the pvlib code and give the user an option to substitute a preferred IAM model. The p and F parameter values in the paper are hitched to the empirical IAM model, and I'm inclined to ask that pvlib code include default p and F from the paper. P could be interpolated from the paper's Table 3; open to other ideas here.
markcampanelli commentedon Jul 3, 2026
This might be relevant in terms of a formulating a consistent implementation of empirical IAM functions across multiple applications in pvlib: #2050
Note: The reason I rail on and on about simpler interfaces in pvlib is that it makes seeing one's contributions across the finish line way easier, especially as the code base grows. Of course, it also reduces the mental load on the consumers, even though many of them don't realize how much of a good thing that is, esp. once they have their particular computational workflow set up in the loosey-goosey world of Python.
williamhobbs commentedon Jul 3, 2026
@cwhanse thanks.
I agree that the IAM table from the paper should be the default, and it should also default to the paper’s Fn and P.
For P, I think using the values from Table 3 and interpolating probably makes the most sense. Based on the points in fig 5 and the regression used to get the values in Table 3, it seems reasonable to somehow extrapolate to zero soiling (SL0), but to fix the P value at 0.8 for SL0 greater than 15%. But I haven’t tested anything there, so I’m very open to suggestions a.
And clarify it all in the doc string.
And of course allowing custom IAM, Fn, and P should be included.
williamhobbs commentedon Jul 7, 2026
I'm not sure how much this matters, but I can't seem to confirm where the empirical IAM values in Table 2 of Guo 2026 came from. I don't have a copy of the manuscript for ref 19, but slides are online*, and I don't see anything that matches Table 2. Ref 18 is open access (just the data, the related paper** is not open access), and includes lots of measurements, but I also can't find a match there.
* https://www.kiwa.com/globalassets/us/pvel/resources/kiwa-pvel-pvsc-iam-presentation-2024_06_12.pdf
** https://doi.org/10.1002/pip.3365
cwhanse commentedon Jul 8, 2026
I am looking at a copy of [19] and I don't see those numbers. I think they may have been derived from the supplementary data for this paper: https://doi.org/10.1002/pip.3365 But the DTU server seems to have lost that file; maybe @AdamRJensen can help?
williamhobbs commentedon Jul 8, 2026
@cwhanse, the supplementary data link (https://doi.org/10.11583/DTU.12613325.v1) works for me. Here's the direct file download link: https://data.dtu.dk/ndownloader/files/23707952.
Also looks like it's okay to post here, AOIRR2020RawData.csv, with the following note:
edit to add: @cwhanse, I bet the issue you ran into an invalid link due to a wrapped line in Guo 2026. it goes to https://doi.org/10.11583/ instead of https://doi.org/10.11583/DTU.12613325.v1.
CameronGordonn commentedon Nov 12, 2026
Edit: Brevity, added script output and PR proposal
The Table 2 values come from the DTU dataset [18] linked above (the table header only cites [19]). They're the mean of Lab A's four samples and match to 7 decimals. The 0 at 90° is Guo's addition.
Fn and P were fitted with this table, so I'd keep it as the default and just cite the dataset. Compared with iam.physical in @williamhobbs's sketch, the modeled loss differs by up to 2% through 65° but by about 16% at 75°.
For P, I don't think I'd extrapolate the Fig. 5 fit (P = 31.48·SL0² − 9.88·SL0 + 1.57). It bottoms out at about 0.80 near SL0 = 0.157 and goes up to 1.57 at SL0 = 0. Interpolating Table 3 with np.interp gives P = 1.15 below 0.05 and P = 0.80 above 0.15, which matches the 0.8 cap suggested above. Another option: Table 5 shows P = 1 (or 0.9) with Fn = 0.7 keeps daily loss within 6%.
To start, I'd propose one function in
pvlib/soiling.pytaking aoi and the normal-incidence soiling loss, with Table 2 as the default IAM (or a user-supplied one), P from Table 3, Fn = 0.7, and the SL0 floor. The docstring would warn against passing kimber/hsu output, since field-measured losses already include the angle effect.Two questions I have on this; should aoi ≥ 90° return SL0 or NaN, and should P default to Table 3 or the simpler P = 1?
I've worked on how tilt angle affects soiling buildup and rain cleaning, so this is interesting to me. @williamhobbs since you wrote the prototype, are you planning a PR? If not, I'd be interested in building once we settle the defaults.