Skip to content

Commit def8c87

Browse files
authored
Miscellaneous updates to spectrl2 gallery example (#2208)
* correct doi role * (possible?) clarification to wording * move references * Update plot_spectrl2_fig51A.py * linter
1 parent 3837f54 commit def8c87

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/examples/spectrum/plot_spectrl2_fig51A.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313
# This example recreates an example figure from the SPECTRL2 NREL Technical
1414
# Report [1]_. The figure shows modeled spectra at hourly intervals across
1515
# a single morning.
16-
#
17-
# References
18-
# ----------
19-
# .. [1] Bird, R, and Riordan, C., 1984, "Simple solar spectral model for
20-
# direct and diffuse irradiance on horizontal and tilted planes at the
21-
# earth's surface for cloudless atmospheres", NREL Technical Report
22-
# TR-215-2436 doi:10.2172/5986936.
2316

2417
# %%
2518
# The SPECTRL2 model has several inputs; some can be calculated with pvlib,
@@ -53,9 +46,10 @@
5346

5447
# %%
5548
# With all the necessary inputs in hand we can model spectral irradiance using
56-
# :py:func:`pvlib.spectrum.spectrl2`. Note that because we are calculating
57-
# the spectra for more than one set of conditions, we will get back 2-D
58-
# arrays (one dimension for wavelength, one for time).
49+
# :py:func:`pvlib.spectrum.spectrl2`. Note that because we are calculating
50+
# the spectra for more than one set of conditions, the spectral irradiance
51+
# components will be returned in a dictionary as 2-D arrays, with one dimension
52+
# for wavelength and one for time.
5953

6054
spectra = spectrum.spectrl2(
6155
apparent_zenith=solpos.apparent_zenith,
@@ -95,3 +89,11 @@
9589
# position and the solar position calculation in the technical report does not
9690
# exactly match the one used here. However, the differences are minor enough
9791
# to not materially change the spectra.
92+
93+
# %%
94+
# References
95+
# ----------
96+
# .. [1] Bird, R, and Riordan, C., 1984, "Simple solar spectral model for
97+
# direct and diffuse irradiance on horizontal and tilted planes at the
98+
# earth's surface for cloudless atmospheres", NREL Technical Report
99+
# TR-215-2436 :doi:`10.2172/5986936`

0 commit comments

Comments
 (0)