Skip to content

Commit 19791cf

Browse files
committed
Update average_photon_energy.py
1 parent 9fcf180 commit 19791cf

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

docs/examples/spectrum/average_photon_energy.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@
9898
# %%
9999
# Given the changing irradiance throughout the day, it is not obvious from
100100
# inspection how the relative distribution of light changes as a function of
101-
# wavelength. We can normalise the spectral irradiance curves to get an idea
102-
# of this shift in the shape of the spectrum over the course of the day. In
101+
# wavelength. We can normalise the spectral irradiance curves to visualise
102+
# this shift in the shape of the spectrum over the course of the day. In
103103
# this example, we normalise by dividing each spectral irradiance value by the
104-
# total irradiance, as calculated by integrating the entire spectral irradiance
105-
# distribution with respect to wavelength.
104+
# total broadband irradiance, which we calculate by integrating the entire
105+
# spectral irradiance distribution with respect to wavelength.
106106

107107
poa_global = spectra_components['poa_global']
108108
wavelength = spectra_components['wavelength']
@@ -127,16 +127,13 @@
127127
plt.legend(labels)
128128
plt.show()
129129

130-
131-
# XX figure layout --- one on top of another? increase size/readability
132-
133130
# %%
134-
# Now we can see from XX figure numbers? XX that at the start and end of the
135-
# day, the spectrum is red shifted, meaning there is a greater proportion of
136-
# longer wavelength radiation. Meanwhile, during the middle of the day there is
137-
# a blue shift in the spectral distribution, indicating a greater prevalence of
138-
# shorter wavelength radiation.
139-
131+
# We can now see from the normalised irradiance curves that at the start and
132+
# end of the day, the spectrum is red shifted, meaning there is a greater
133+
# proportion of longer wavelength radiation. Meanwhile, during the middle of
134+
# the day, there is a blue shift in the spectral distribution, indicating a
135+
# greater prevalence of shorter wavelength radiation.
136+
#
140137
# How can we quantify this shift? That is where the average photon energy comes
141138
# into play.
142139

@@ -149,7 +146,7 @@
149146
# spectral irradiance distribution, a :py:class:`pandas.DataFrame` is
150147
# appropriate. We also need to set the column headers as wavelength, so each
151148
# row is a single spectral irradiance distribution. It is important to remember
152-
# here that the calculation of APE is dependent on the integration limits, i.e.
149+
# here that the resulting APE values depend on the integration limits, i.e.
153150
# the wavelength range of the spectral irradiance input. APE values are only
154151
# comparable if calculated between the same integration limits. In this case,
155152
# our APE values are calculated between 300nm and 4000nm.

0 commit comments

Comments
 (0)