Skip to content

Docstring for irradiance.liujordan isn't clear #1100

Closed

Description

@cwhanse

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

Activity

  1. wholmgren commented on Dec 4, 2020

    @wholmgren
    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.

  2. cwhanse commented on Dec 8, 2020

    @cwhanse
    MemberAuthor

    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.
  3. wholmgren commented on Dec 8, 2020

    @wholmgren
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions