Skip to content

Commit 1fdd0e4

Browse files
committed
Update average_photon_energy.py
add ape table
1 parent 5b20088 commit 1fdd0e4

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

docs/examples/spectrum/average_photon_energy.py

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@
5959
# more than one set of conditions, the function will return a dictionary
6060
# containing 2-D arrays for the spectral irradiance components and a 1-D array
6161
# of shape (122,) for wavelength. For each of the 2-D arrays, one dimension is
62-
# for wavelength in nm and one is for irradiance in Wm⁻²nm⁻¹. The next section
63-
# will show how to convert this output into a suitable input for
64-
# :py:func:`~average_photon_energy`.
62+
# for wavelength in nm and one is for irradiance in Wm⁻²nm⁻¹.
6563

6664
spectra_components = spectrum.spectrl2(
6765
apparent_zenith=solpos.apparent_zenith,
@@ -181,13 +179,26 @@
181179

182180
# %%
183181
# As expected, the morning and evening spectra have a lower APE while a higher
184-
# APE is observed closer to the middle of the day.
185-
# XXX for reference am1.5 between 300 and 4000 nm is 1.4501 eV
186-
# =============================================================================
187-
# am15 = spectrum.get_am15g()
188-
# am15 = am15[am15.index>=300]
189-
# ape_am15 = spectrum.average_photon_energy(am15)
190-
# =============================================================================
182+
# APE is observed closer to the middle of the day. For reference, AM1.5 between
183+
# 300 and 4000 nm is 1.4501 eV. This indicates that the simulated spectra are
184+
# slightly red shifted with respect to the AM1.5 standard reference spectrum.
185+
# The table below summarises the APE values calculated for our day under the
186+
# specified atmospheric conditions.
187+
188+
# =================== ==========
189+
# Time APE (eV)
190+
# =================== ==========
191+
# 08:00 1.25
192+
# 09:00 1.37
193+
# 10:00 1.40
194+
# 11:00 1.41
195+
# 12:00 1.42
196+
# 13:00 1.41
197+
# 14:00 1.40
198+
# 15:00 1.38
199+
# 16:00 1.28
200+
# =================== ==========
201+
191202
# %%
192203
# References
193204
# ----------

0 commit comments

Comments
 (0)