Skip to content

Docstring for irradiance.liujordan isn't clear #1100

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

Closed
cwhanse opened this issue Dec 3, 2020 · 3 comments · Fixed by #1104
Closed

Docstring for irradiance.liujordan isn't clear #1100

cwhanse opened this issue Dec 3, 2020 · 3 comments · Fixed by #1104

Comments

@cwhanse
Copy link
Member

cwhanse commented Dec 3, 2020

Docstring lists a parameter pressure but the parameter should be airmass. Appears to be an oversight in #386.

I examined the 1960 Liu/Jordan paper and don't recognize the equation coded

dhi = 0.3 * (1.0 - tau**airmass) * dni_extra * np.cos(np.radians(zenith))
. Liu and Jordan (1960) don't mention airmass at all; is the model described in the Campbell and Norman book? Anyone have access to a copy to verify the model?

@wholmgren this function was added in #180

@wholmgren
Copy link
Member

The original author of this code provided a pdf for the relevant section of the book. This expression is equation 11.13. The preceding line states "...using an empirical equation adapated from Liu and Jordan (1960)". So it's fair to question whether this function should really be called liujordan.

@cwhanse
Copy link
Member Author

cwhanse commented Dec 8, 2020

Thanks @wholmgren. I propose to:

  • rename this function from liujordan to campbellnorman. The Liu-Jordan model is usually understood to be an empirical relationship between transmission coefficients for direct and diffuse irradiance, which can be used to separate DHI and DNI from clear-sky GHI. Instead, this function is a different sort than any other in pvlib currently, getting DNI and DHI from extraterrestrial irradiance and atmospheric transmittance. There is room in pvlib for the Liu-Jordan model as a decomposition function akin to Erbs, if that becomes of interest.
  • revise the function to embed the calculation of airmass. The model described in the Cambell and Norman book assumes absolute air mass computed by the 'simple' air mass model (1/cos(zenith)). It's not clear that their correlation allows the air mass model to be exchanged for e.g. 'kastenyoung1989'. The campbellnormal function would expect pressure (default to atmospheric) as input rather than airmass.

@wholmgren
Copy link
Member

Good plan. Thanks for digging into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants