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
{{ message }}
Repository navigation
Should marion_diffuse use diffuse versions of martin_ruiz and schlick? #2113
While working on #2050, it occurred to me that pvlib.iam.marion_diffuse refers to the direct component IAM functions for martin_ruiz and schlick, i.e., it would seem that these two lines should instead refer to pvlib.iam.martin_ruiz_diffuse and pvlib.iam.schlick_diffuse
I think I understand now: pvlib.iam.martin_ruiz_diffuse and pvlib.iam.schlick_diffuse are analogous to pvlib.iam.marion_diffuse, but with a slightly different output interface. I was wondering why one would need a separate IAM function for direct vs. diffuse 🤪. Thanks @echedey-ls!
Activity
echedey-ls commentedon Jun 30, 2024
If I understand correctly, that diffuse IAM uses direct IAM models to compute a diffuse one via integration. So it sounds good to me. It uses this function: https://github.com/pvlib/pvlib-python/blob/13ef8f4e3f07a6b1c5acd7014a2617beeb10867c/pvlib/iam.py#L647C1-L653C34
markcampanelli commentedon Jun 30, 2024
I think I understand now:
pvlib.iam.martin_ruiz_diffuseandpvlib.iam.schlick_diffuseare analogous topvlib.iam.marion_diffuse, but with a slightly different output interface. I was wondering why one would need a separate IAM function for direct vs. diffuse 🤪. Thanks @echedey-ls!markcampanelli commentedon Jun 30, 2024
Closing due to misunderstanding of code. (Github's issue-closing interface is a bit wierd!)
markcampanelli commentedon Jun 30, 2024
Really, close this.