|
98 | 98 | # %% |
99 | 99 | # Given the changing irradiance throughout the day, it is not obvious from |
100 | 100 | # 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 |
103 | 103 | # 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. |
106 | 106 |
|
107 | 107 | poa_global = spectra_components['poa_global'] |
108 | 108 | wavelength = spectra_components['wavelength'] |
|
127 | 127 | plt.legend(labels) |
128 | 128 | plt.show() |
129 | 129 |
|
130 | | - |
131 | | -# XX figure layout --- one on top of another? increase size/readability |
132 | | - |
133 | 130 | # %% |
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 | +# |
140 | 137 | # How can we quantify this shift? That is where the average photon energy comes |
141 | 138 | # into play. |
142 | 139 |
|
|
149 | 146 | # spectral irradiance distribution, a :py:class:`pandas.DataFrame` is |
150 | 147 | # appropriate. We also need to set the column headers as wavelength, so each |
151 | 148 | # 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. |
153 | 150 | # the wavelength range of the spectral irradiance input. APE values are only |
154 | 151 | # comparable if calculated between the same integration limits. In this case, |
155 | 152 | # our APE values are calculated between 300nm and 4000nm. |
|
0 commit comments