@@ -245,34 +245,39 @@ def relativeairmass(zenith, model='kastenyoung1989'):
245
245
246
246
247
247
def gueymard94_pw (temp_air , relative_humidity ):
248
- """
248
+ r """
249
249
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
251
251
accuracy of this method is approximately 20% for moderate PW (1-3
252
252
cm) and less accurate otherwise.
253
253
254
- The model was developed by expanding Eq. 1 in [2]:
254
+ The model was developed by expanding Eq. 1 in [2]_:
255
+
255
256
.. math::
256
257
257
258
w = 0.1 H_v \rho_v
258
259
259
- using Eq. 2 in [2]
260
+ using Eq. 2 in [2]_
261
+
260
262
.. math::
261
263
262
264
\rho_v = 216.7 R_H e_s /T
263
265
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
+
266
269
.. math::
267
270
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]_
269
277
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]
273
278
.. math::
274
279
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)
276
281
277
282
Parameters
278
283
----------
@@ -286,17 +291,20 @@ def gueymard94_pw(temp_air, relative_humidity):
286
291
pw : array-like
287
292
precipitable water (cm)
288
293
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.
300
308
"""
301
309
302
310
T = temp_air + 273.15 # Convert to Kelvin
@@ -318,7 +326,7 @@ def gueymard94_pw(temp_air, relative_humidity):
318
326
319
327
def first_solar_spectral_correction (pw , airmass_absolute , module_type = None ,
320
328
coefficients = None ):
321
- """
329
+ r """
322
330
Spectral mismatch modifier based on precipitable water and absolute
323
331
(pressure corrected) airmass.
324
332
@@ -335,7 +343,7 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
335
343
336
344
Default coefficients are determined for several cell types with
337
345
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
339
347
SMARTS, spectrums are simulated with all combinations of AMa and
340
348
Pwat where:
341
349
@@ -349,8 +357,8 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
349
357
quantum efficiency curves. Multiple linear regression is then
350
358
applied to fit Eq. 1 to determine the coefficients for each module.
351
359
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.
354
362
355
363
Parameters
356
364
----------
@@ -362,18 +370,17 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
362
370
363
371
module_type : None or string
364
372
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:
368
376
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.
373
380
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]_ .
377
384
378
385
coefficients : array-like
379
386
allows for entry of user defined spectral correction
@@ -396,12 +403,13 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
396
403
397
404
References
398
405
----------
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
405
413
"""
406
414
407
415
_coefficients = {}
0 commit comments