Skip to content

Commit c048aa5

Browse files
committed
Edit output key definitions for consistency between functions
1 parent 814e94a commit c048aa5

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

pvlib/irradiance.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -637,14 +637,15 @@ def isotropic(surface_tilt, dhi, return_components=False):
637637
If ``False``, ``sky_diffuse`` is returned.
638638
If ``True``, ``diffuse_components`` is returned.
639639
640-
sky_diffuse : numeric
641-
The sky diffuse component of the solar radiation. [Wm⁻²]
640+
poa_sky_diffuse : numeric
641+
The sky diffuse component of irradiance on a tilted plane. [Wm⁻²]
642642
643643
diffuse_components : dict (array input) or DataFrame (Series input)
644644
Keys/columns are:
645-
* poa_sky_diffuse: Total sky diffuse on the plane of array. [Wm⁻²]
646-
* poa_isotropic: The portion of POA irradiance from the isotropic
647-
sky dome. [Wm⁻²]
645+
* poa_sky_diffuse: The sky diffuse component of irradiance on a
646+
tilted plane. [Wm⁻²]
647+
* poa_isotropic: The portion of sky diffuse irradiance on a tilted
648+
plane from the isotropic sky dome. [Wm⁻²]
648649
649650
References
650651
----------
@@ -658,20 +659,20 @@ def isotropic(surface_tilt, dhi, return_components=False):
658659
Energy vol. 201. pp. 8-12
659660
:doi:`10.1016/j.solener.2020.02.067`
660661
'''
661-
sky_diffuse = dhi * (1 + tools.cosd(surface_tilt)) * 0.5
662+
poa_sky_diffuse = dhi * (1 + tools.cosd(surface_tilt)) * 0.5
662663

663664
if return_components:
664665
diffuse_components = {
665-
'poa_sky_diffuse': sky_diffuse,
666-
'poa_isotropic': sky_diffuse
666+
'poa_sky_diffuse': poa_sky_diffuse,
667+
'poa_isotropic': poa_sky_diffuse
667668
}
668669

669-
if isinstance(sky_diffuse, pd.Series):
670+
if isinstance(poa_sky_diffuse, pd.Series):
670671
diffuse_components = pd.DataFrame(diffuse_components)
671672

672673
return diffuse_components
673674
else:
674-
return sky_diffuse
675+
return poa_sky_diffuse
675676

676677

677678
def klucher(surface_tilt, surface_azimuth, dhi, ghi, solar_zenith,

0 commit comments

Comments
 (0)