question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong Return in documentation of cloud_covr_to_transmittance_linear

See original GitHub issue

In the documentation of the pvlib.forecast.NDFD.cloud_cover_to_transmittance_linear function, it seems the documented return is the wrong one: It shows the GHI as the return instead of the transmittance.

image

Here is the function in pvlib.forecast that seems to confirm the case.

    """
    Convert cloud cover to atmospheric transmittance using a linear
    model.

    0% cloud cover returns offset.

    100% cloud cover returns 0.

    Parameters
    ----------
    cloud_cover : numeric
        Cloud cover in %.
    offset : numeric, default 0.75
        Determines the maximum transmittance.
    kwargs
        Not used.

    Returns
    -------
    ghi : numeric
        Estimated GHI.
    """
    transmittance = ((100.0 - cloud_cover) / 100.0) * offset

    return transmittance`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
JoLo90commented, Jan 5, 2022

@AdamRJensen I’ll create a PR in the next days.

1reaction
cwhansecommented, Jan 5, 2022

it’s worth denoting that it is a fraction

Absolutely

Read more comments on GitHub >

github_iconTop Results From Across the Web

IF LOVING YOU IS WRONG Season 6 cancelled by ... - YouTube
Hey, guys! So, Season 5 of If Loving You Is Wrong will premiere on the Oprah Winfrey Network on March 31. Unlike the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found