Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/sphinx/source/whatsnew/v0.9.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Testing

Documentation
~~~~~~~~~~~~~
* Fix documentation return error in :py:meth:`pvlib.forecast.ForecastModel.cloud_cover_to_transmittance_linear`
(:issue:`1367`)


Requirements
~~~~~~~~~~~~
Expand All @@ -41,3 +44,4 @@ Contributors
* Christian Weickhmann (:ghuser:`cweickhmann`)
* Kevin Anderson (:ghuser:`kanderso-nrel`)
* Adam R. Jensen (:ghuser:`AdamRJensen`)
* Johann Loux (:ghuser:`JoLo90`)
8 changes: 4 additions & 4 deletions pvlib/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ def cloud_cover_to_irradiance_clearsky_scaling(self, cloud_cover,
def cloud_cover_to_transmittance_linear(self, cloud_cover, offset=0.75,
**kwargs):
"""
Convert cloud cover to atmospheric transmittance using a linear
model.
Convert cloud cover percentage to atmospheric transmittance ratio
using a linear model.

0% cloud cover returns offset.

Expand All @@ -530,8 +530,8 @@ def cloud_cover_to_transmittance_linear(self, cloud_cover, offset=0.75,

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

Expand Down