Skip to content

Commit 149c557

Browse files
committed
Little changes to docs and var names
1 parent eb1b245 commit 149c557

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

docs/tutorials/spectral_mismatch_modifiers.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"aoi = pvlib.irradiance.aoi(surface_tilt, surface_azimuth,\n",
111111
" solar_pos['apparent_zenith'], solar_pos['azimuth'])\n",
112112
"\n",
113-
"# Let's consider this the irradiances without modifiers\n",
113+
"# Let's consider this the irradiances without spectral modifiers\n",
114114
"# We can calculate the mismatch before and then create a \"poa_irrad\" var for\n",
115115
"# modified irradiances, but we are also doing this to compare later.\n",
116116
"# 'spectrum.martin_ruiz_spectral_modifier' result is designed to make it\n",
@@ -159,17 +159,17 @@
159159
"# First, let's find the airmass and the clearness index\n",
160160
"# Little caution: default values for this model were fitted obtaining the airmass through the kasten1966 method, not used by default\n",
161161
"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",
163163
" solar_zenith=solar_pos['zenith'],\n",
164164
" extra_radiation=extra_rad)\n",
165165
"# Check module is m-Si (monocrystalline silicon)\n",
166166
"print('Module type is: ' + cec_module['Technology'])\n",
167167
"\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')"
173173
]
174174
},
175175
{
@@ -190,7 +190,7 @@
190190
"metadata": {},
191191
"outputs": [],
192192
"source": [
193-
"poa_irrad_modified = poa_irrad * modifiers\n",
193+
"poa_irrad_modified = poa_irrad * spectral_modifiers\n",
194194
"# We need global modified irradiance for the output power calculation\n",
195195
"poa_irrad_modified = \\\n",
196196
" pvlib.irradiance.poa_components(aoi,\n",

pvlib/spectrum/mismatch.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ def integrate(e):
241241
def martin_ruiz_spectral_modifier(clearness_index, airmass_absolute,
242242
cell_type=None, model_parameters=None):
243243
r"""
244-
Calculate mismatch modifiers for POA direct, sky diffuse and ground diffuse
245-
irradiances due to material's spectral response to spectrum characterised
246-
by the clearness index and the absolute airmass, with respect to the
247-
standard spectrum.
244+
Calculate spectral mismatch modifiers for POA direct, sky diffuse and
245+
ground diffuse irradiances using the clearness index and the absolute
246+
airmass.
248247
249248
.. warning::
250249
Included model parameters for ``monosi``, ``polysi`` and ``asi`` were

0 commit comments

Comments
 (0)