Open adriesse opened 10 months ago
Hey can I try to solve this?
Are those errors in our implementation (i.e. we deviate from the reference), or conceptual inconsistencies in the Marion reference itself? If the latter, maybe we should enable these improvements via optional parameters while leaving the current behavior the default.
@prady0t thanks for offering to help! I think we still need to define what should be done here before anyone can start doing it :)
I'll leave that open for discussion. We tried hard to replicate Marion's published results but couldn't.
Describe the bug
gti_dirint()
calculates a few things internally that are either not quite right or inconvenient.airmas
is pressure-adjusted for use in DIRINT, but Perez transposition actually needs relative airmass.dni_extra
is calculated using the hard-coded constant 1370 for compatibility with DISC.These internal calculation make it harder to do a precise round-trip comparison between forward and reverse transposition and/or restrict the conditions under which a precise comparison is possible.
Work-around
pressure=101325
.airmass
anddni_extra
for use in the forward transposition with the internal parameters ofgti_dirint
.Versions:
pvlib.__version__
: 0.9.1