| 
59 | 59 | # more than one set of conditions, the function will return a dictionary  | 
60 | 60 | # containing 2-D arrays for the spectral irradiance components and a 1-D array  | 
61 | 61 | # 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⁻¹.  | 
65 | 63 | 
 
  | 
66 | 64 | spectra_components = spectrum.spectrl2(  | 
67 | 65 |     apparent_zenith=solpos.apparent_zenith,  | 
 | 
181 | 179 | 
 
  | 
182 | 180 | # %%  | 
183 | 181 | # 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 | + | 
191 | 202 | # %%  | 
192 | 203 | # References  | 
193 | 204 | # ----------  | 
 | 
0 commit comments