Skip to content

Commit d8ea82b

Browse files
authored
Fix examples of shaded_fraction1d (#2215)
* Update example of shaded_fraction1d * Update v0.11.1.rst
1 parent d6baf97 commit d8ea82b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

docs/sphinx/source/whatsnew/v0.11.1.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Documentation
5555
* Added gallery example demonstrating how to use
5656
different Perez coefficients in a ModelChain.
5757
(:issue:`2127`, :pull:`2148`)
58+
* Fixed examples in :py:func:`pvlib.shading.shaded_fraction1d`. (:pull:`#2215`)
5859

5960
* Removed unused "times" input from dni_et() function (:issue:`2105`)
6061

pvlib/shading.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ def shaded_fraction1d(
449449
Tilted row with a pitch of 3 m, a collector width of
450450
2 m, and row rotations of 30°. In the morning.
451451
452-
>>> shaded_fraction1d(solar_zenith=80, solar_azimuth=104.5,
452+
>>> shaded_fraction1d(solar_zenith=80, solar_azimuth=135,
453453
... axis_azimuth=90, shaded_row_rotation=30, shading_row_rotation=30,
454454
... collector_width=2, pitch=3, axis_tilt=0,
455455
... surface_to_axis_offset=0.05, cross_axis_slope=0)
456-
0.6827437712114521
456+
0.47755694708090535
457457
458458
**Fixed-tilt north-facing array on sloped terrain**
459459
@@ -463,11 +463,11 @@ def shaded_fraction1d(
463463
10° slope, where their axis is on the most inclined
464464
direction (zero cross-axis slope). Shaded in the morning.
465465
466-
>>> shaded_fraction1d(solar_zenith=65, solar_azimuth=75.5,
466+
>>> shaded_fraction1d(solar_zenith=80, solar_azimuth=75.5,
467467
... axis_azimuth=270, shaded_row_rotation=50, shading_row_rotation=30,
468468
... collector_width=2.5, pitch=4, axis_tilt=10,
469469
... surface_to_axis_offset=0.05, cross_axis_slope=0)
470-
0.6975923460352351
470+
0.793244836197256
471471
472472
**N-S single-axis tracker on sloped terrain**
473473
@@ -476,10 +476,10 @@ def shaded_fraction1d(
476476
in the morning. Terrain slope is 7° west-east (east-most
477477
tracker is higher than the west-most tracker).
478478
479-
>>> shaded_fraction1d(solar_zenith=50, solar_azimuth=90, axis_azimuth=180,
479+
>>> shaded_fraction1d(solar_zenith=80, solar_azimuth=90, axis_azimuth=180,
480480
... shaded_row_rotation=-30, collector_width=1.4, pitch=3, axis_tilt=0,
481481
... surface_to_axis_offset=0.10, cross_axis_slope=7)
482-
0.5828961460616938
482+
0.8242176864434579
483483
484484
Note the previous example only is valid for the shaded fraction of the
485485
west-most tracker in the morning, and assuming it is the
@@ -491,10 +491,10 @@ def shaded_fraction1d(
491491
tracker, you must input the corresponding ``shaded_row_rotation``
492492
in the afternoon.
493493
494-
>>> shaded_fraction1d(solar_zenith=50, solar_azimuth=270, axis_azimuth=180,
494+
>>> shaded_fraction1d(solar_zenith=80, solar_azimuth=270, axis_azimuth=180,
495495
... shaded_row_rotation=30, collector_width=1.4, pitch=3, axis_tilt=0,
496496
... surface_to_axis_offset=0.10, cross_axis_slope=7)
497-
0.4399034444363955
497+
0.018002567182254348
498498
499499
You must switch the input/output depending on the
500500
sign of the projected solar zenith angle. See

0 commit comments

Comments
 (0)