@@ -245,34 +245,39 @@ def relativeairmass(zenith, model='kastenyoung1989'):
245245
246246
247247def gueymard94_pw (temp_air , relative_humidity ):
248- """
248+ r """
249249 Calculates precipitable water (cm) from ambient air temperature (C)
250- and relatively humidity (%) using an empirical model [1-3] . The
250+ and relatively humidity (%) using an empirical model. The
251251 accuracy of this method is approximately 20% for moderate PW (1-3
252252 cm) and less accurate otherwise.
253253
254- The model was developed by expanding Eq. 1 in [2]:
254+ The model was developed by expanding Eq. 1 in [2]_:
255+
255256 .. math::
256257
257258 w = 0.1 H_v \rho_v
258259
259- using Eq. 2 in [2]
260+ using Eq. 2 in [2]_
261+
260262 .. math::
261263
262264 \rho_v = 216.7 R_H e_s /T
263265
264- H_v is the apparant water vapor scale height (km). The expression
265- for H_v is Eq. 4 in [2]:
266+ :math:`H_v` is the apparant water vapor scale height (km). The
267+ expression for :math:`H_v` is Eq. 4 in [2]_:
268+
266269 .. math::
267270
268- H_v = 0.4976 + 1.5265*T/273.15 + exp(13.6897*T/273.15 - 14.9188*(T/273.15)^3)
271+ H_v = 0.4976 + 1.5265*T/273.15 + \exp(13.6897*T/273.15 - 14.9188*(T/273.15)^3)
272+
273+ :math:`\rho_v` is the surface water vapor density (g/m^3). In the
274+ expression :math:`\rho_v`, :math:`e_s` is the saturation water vapor
275+ pressure (millibar). The
276+ expression for :math:`e_s` is Eq. 1 in [3]_
269277
270- \r ho_v is the surface water vapor density (g/m^3). In the expression
271- \r ho_v, e_s is the saturation water vapor pressure (millibar). The
272- expression for e_s is Eq. 1 in [3]
273278 .. math::
274279
275- e_s = exp(22.330 - 49.140*(100/T) - 10.922*(100/T)^2 - 0.39015*T/100)
280+ e_s = \ exp(22.330 - 49.140*(100/T) - 10.922*(100/T)^2 - 0.39015*T/100)
276281
277282 Parameters
278283 ----------
@@ -286,17 +291,20 @@ def gueymard94_pw(temp_air, relative_humidity):
286291 pw : array-like
287292 precipitable water (cm)
288293
289- Reference:
290- [1] W. M. Keogh and A. W. Blakers, Accurate Measurement, Using Natural
291- Sunlight, of Silicon Solar Cells, Prog. in Photovoltaics: Res.
292- and Appl. 2004, vol 12, pp. 1-19 (DOI: 10.1002/pip.517)
293- [2] C. Gueymard, Analysis of Monthly Average Atmospheric Precipitable
294- Water and Turbidity in Canada and Northern United States,
295- Solar Energy vol 53(1), pp. 57-71, 1994.
296- [3] C. Gueymard, Assessment of the Accuracy and Computing Speed of
297- simplified saturation vapor equations using a new reference
298- dataset, J. of Applied Meteorology 1993, vol. 32(7), pp.
299- 1294-1300.
294+ References
295+ ----------
296+ .. [1] W. M. Keogh and A. W. Blakers, Accurate Measurement, Using Natural
297+ Sunlight, of Silicon Solar Cells, Prog. in Photovoltaics: Res.
298+ and Appl. 2004, vol 12, pp. 1-19 (DOI: 10.1002/pip.517)
299+
300+ .. [2] C. Gueymard, Analysis of Monthly Average Atmospheric Precipitable
301+ Water and Turbidity in Canada and Northern United States,
302+ Solar Energy vol 53(1), pp. 57-71, 1994.
303+
304+ .. [3] C. Gueymard, Assessment of the Accuracy and Computing Speed of
305+ simplified saturation vapor equations using a new reference
306+ dataset, J. of Applied Meteorology 1993, vol. 32(7), pp.
307+ 1294-1300.
300308 """
301309
302310 T = temp_air + 273.15 # Convert to Kelvin
@@ -318,7 +326,7 @@ def gueymard94_pw(temp_air, relative_humidity):
318326
319327def first_solar_spectral_correction (pw , airmass_absolute , module_type = None ,
320328 coefficients = None ):
321- """
329+ r """
322330 Spectral mismatch modifier based on precipitable water and absolute
323331 (pressure corrected) airmass.
324332
@@ -335,7 +343,7 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
335343
336344 Default coefficients are determined for several cell types with
337345 known quantum efficiency curves, by using the Simple Model of the
338- Atmospheric Radiative Transfer of Sunshine (SMARTS) [1]. Using
346+ Atmospheric Radiative Transfer of Sunshine (SMARTS) [1]_ . Using
339347 SMARTS, spectrums are simulated with all combinations of AMa and
340348 Pwat where:
341349
@@ -349,8 +357,8 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
349357 quantum efficiency curves. Multiple linear regression is then
350358 applied to fit Eq. 1 to determine the coefficients for each module.
351359
352- Based on the PVLIB Matlab function pvl_FSspeccorr by Mitchell Lee
353- and Alex Panchula, at First Solar, 2015.
360+ Based on the PVLIB Matlab function `` pvl_FSspeccorr`` by Mitchell
361+ Lee and Alex Panchula, at First Solar, 2015.
354362
355363 Parameters
356364 ----------
@@ -362,18 +370,17 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
362370
363371 module_type : None or string
364372 a string specifying a cell type. Can be lower or upper case
365- letters. Admits values of 'cdte', 'monosi'= 'xsi',
366- 'multisi'=' polysi'. If provided, this input selects coefficients
367- for the following default modules:
373+ letters. Admits values of 'cdte', 'monosi', 'xsi', 'multisi ',
374+ 'polysi'. If provided, this input selects coefficients for the
375+ following default modules:
368376
369- * 'cdte' - coefficients for First Solar Series 4-2 CdTe modules.
370- * 'monosi','xsi' - coefficients for First Solar TetraSun modules.
371- * 'multisi','polysi' - coefficients for multi-crystalline silicon
372- modules.
377+ * 'cdte' - First Solar Series 4-2 CdTe modules.
378+ * 'monosi', 'xsi' - First Solar TetraSun modules.
379+ * 'multisi', 'polysi' - multi-crystalline silicon modules.
373380
374- The module used to calculate the spectral correction
375- coefficients corresponds to the Mult-crystalline silicon
376- Manufacturer 2 Model C from [2].
381+ The module used to calculate the spectral correction
382+ coefficients corresponds to the Mult-crystalline silicon
383+ Manufacturer 2 Model C from [2]_ .
377384
378385 coefficients : array-like
379386 allows for entry of user defined spectral correction
@@ -396,12 +403,13 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
396403
397404 References
398405 ----------
399- [1] Gueymard, Christian. SMARTS2: a simple model of the atmospheric
400- radiative transfer of sunshine: algorithms and performance
401- assessment. Cocoa, FL: Florida Solar Energy Center, 1995.
402- [2] Marion, William F., et al. User's Manual for Data for Validating
403- Models for PV Module Performance. National Renewable Energy
404- Laboratory, 2014. http://www.nrel.gov/docs/fy14osti/61610.pdf
406+ .. [1] Gueymard, Christian. SMARTS2: a simple model of the atmospheric
407+ radiative transfer of sunshine: algorithms and performance
408+ assessment. Cocoa, FL: Florida Solar Energy Center, 1995.
409+
410+ .. [2] Marion, William F., et al. User's Manual for Data for Validating
411+ Models for PV Module Performance. National Renewable Energy
412+ Laboratory, 2014. http://www.nrel.gov/docs/fy14osti/61610.pdf
405413 """
406414
407415 _coefficients = {}
0 commit comments