Skip to content

Commit 5b20088

Browse files
committed
Update average_photon_energy.py
1 parent 5690774 commit 5b20088

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

docs/examples/spectrum/average_photon_energy.py

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -179,36 +179,15 @@
179179
plt.legend(labels)
180180
plt.show()
181181

182-
# %%
183-
# The table below summarises the hourly APE values observed throughout the day.
184-
# .. list-table:: Hourly APE values
185-
# :widths: 25 25
186-
# :header-rows: 1
187-
#
188-
# * - Time
189-
# - APE (eV)
190-
# * - 08:00
191-
# - 1.25
192-
# * - 09:00
193-
# - 1.37
194-
# * - 10:00
195-
# - 1.40
196-
# * - 11:00
197-
# - 1.41
198-
# * - 12:00
199-
# - 1.42
200-
# * - 13:00
201-
# - 1.41
202-
# * - 14:00
203-
# - 1.40
204-
# * - 15:00
205-
# - 1.38
206-
# * - 16:00
207-
# - 1.28
208-
#
209182
# %%
210183
# As expected, the morning and evening spectra have a lower APE while a higher
211184
# 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+
# =============================================================================
212191
# %%
213192
# References
214193
# ----------

0 commit comments

Comments
 (0)