|
110 | 110 | "aoi = pvlib.irradiance.aoi(surface_tilt, surface_azimuth,\n", |
111 | 111 | " solar_pos['apparent_zenith'], solar_pos['azimuth'])\n", |
112 | 112 | "\n", |
113 | | - "# Let's consider this the irradiances without modifiers\n", |
| 113 | + "# Let's consider this the irradiances without spectral modifiers\n", |
114 | 114 | "# We can calculate the mismatch before and then create a \"poa_irrad\" var for\n", |
115 | 115 | "# modified irradiances, but we are also doing this to compare later.\n", |
116 | 116 | "# 'spectrum.martin_ruiz_spectral_modifier' result is designed to make it\n", |
|
159 | 159 | "# First, let's find the airmass and the clearness index\n", |
160 | 160 | "# Little caution: default values for this model were fitted obtaining the airmass through the kasten1966 method, not used by default\n", |
161 | 161 | "airmass = site.get_airmass(solar_position=solar_pos, model='kasten1966')\n", |
162 | | - "clearness = pvlib.irradiance.clearness_index(ghi=weather_data['ghi'],\n", |
| 162 | + "clearness_index = pvlib.irradiance.clearness_index(ghi=weather_data['ghi'],\n", |
163 | 163 | " solar_zenith=solar_pos['zenith'],\n", |
164 | 164 | " extra_radiation=extra_rad)\n", |
165 | 165 | "# Check module is m-Si (monocrystalline silicon)\n", |
166 | 166 | "print('Module type is: ' + cec_module['Technology'])\n", |
167 | 167 | "\n", |
168 | | - "# Get the mismatch modifiers\n", |
169 | | - "modifiers = \\\n", |
170 | | - " pvlib.spectrum.martin_ruiz_spectral_modifier(clearness,\n", |
171 | | - " airmass['airmass_absolute'],\n", |
172 | | - " cell_type='monosi')" |
| 168 | + "# Get the spectral mismatch modifiers\n", |
| 169 | + "spectral_modifiers = \\\n", |
| 170 | + " pvlib.spectrum.martin_ruiz_spectral_modifier(clearness_index,\n", |
| 171 | + " airmass['airmass_absolute'],\n", |
| 172 | + " cell_type='monosi')" |
173 | 173 | ] |
174 | 174 | }, |
175 | 175 | { |
|
190 | 190 | "metadata": {}, |
191 | 191 | "outputs": [], |
192 | 192 | "source": [ |
193 | | - "poa_irrad_modified = poa_irrad * modifiers\n", |
| 193 | + "poa_irrad_modified = poa_irrad * spectral_modifiers\n", |
194 | 194 | "# We need global modified irradiance for the output power calculation\n", |
195 | 195 | "poa_irrad_modified = \\\n", |
196 | 196 | " pvlib.irradiance.poa_components(aoi,\n", |
|
0 commit comments