-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DIRINT and DIRINDEX discrepancies between 0.5.2 and 0.6.3 #738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
maybe this is related to changes in the clear sky model in #459 which was part of v0.6.0? |
@cedricleroy not expected to see that increase in DNI at high zenith/air mass. @mikofski maybe #459 but I think it's more likely due to the zenith angle limit. @cedricleroy could you plot some intermediates from the
I might get to some diagnostics later this week. |
Another option might be to modify dirindex to use any clear sky as input - it's there a possibility for you to use simplified solis? TMY3 has aod and pwat |
The paper behind DIRINDEX assumes the Ineichen model using the Perez enhancement. It appears that the enhancement was introduced as part of the DIRINDEX model, apparently to offset some systematic discrepancy. When the enhancement term is omitted then DIRINDEX suffers. For the near term, @cedricleroy can move ahead by modifying his workflow. In pvlib, I see a few options:
|
Any objections to #3 above, as the resolution path? |
|
@cedricleroy Does |
I vote for 2. Bringing the clear sky calculation into this function would require major API changes. |
How so? My take is that the signature for Edit - I see your point now, we'd drop a few arguments but would need to add others for the embedded call to |
I think what @wholmgren means is that
Hey @markcampanelli. I am not aware of this issue. What is a high latitude? Are you experiencing this? |
@cedricleroy for more info on Ineichen clear sky high latitude discrepencies, see my previous comment, pr #459, and issue #435. In a nutshell, Ineichen mornings and evenings have unphysical peaks at high altitudes due to an undocumented extra parameter that seems to have been added just for Perez's DIRINDEX model maybe? |
@cedricleroy I can offer no further insight, other than I recognized the potential artifact after reading through the above referenced issue and pr. |
That's the way I interpret the sequence of papers - the "Perez enhancement" appears in the paper describing DIRINDEX, and I'm of the point of view that the enhancement is intrinsic to the DIRINDEX model. To be fair it is documented but not emphasized. |
We are in the process of upgrading PVLib from v0.5.2 to v0.6.3, and caught some big changes in the DIRINT and DIRINDEX functions. Here are some plots ran from the same notebook with both versions:
0.5.2
0.6.3
The GHI clearsky (used by the DIRINDEX model) seems to be kind of shifted compared to
0.5.2
:DIRINT changed compared to
0.5.2
and DIRINDEX is way off:Is this expected? Or are we doing anything wrong? It seems it is due to the changes in #400. Wanted to share this before digging further into the root cause.
Here is the notebook, and below are the data.
pvlib-data.csv.zip
The text was updated successfully, but these errors were encountered: