@@ -345,7 +345,7 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
345
345
Pwat where:
346
346
347
347
* 0.5 cm <= Pwat <= 5 cm
348
- * 1.0 <= AMa <= 5.0
348
+ * 1.0 <= AMa <= 5.0
349
349
* Spectral range is limited to that of CMP11 (280 nm to 2800 nm)
350
350
* spectrum simulated on a plane normal to the sun
351
351
* All other parameters fixed at G173 standard
@@ -404,8 +404,8 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
404
404
radiative transfer of sunshine: algorithms and performance
405
405
assessment. Cocoa, FL: Florida Solar Energy Center, 1995.
406
406
.. [2] Lee, Mitchell, and Panchula, Alex. "Spectral Correction for
407
- Photovoltaic Module Performance Based on Air Mass and Precipitable
408
- Water." IEEE Photovoltaic Specialists Conference, Portland, 2016
407
+ Photovoltaic Module Performance Based on Air Mass and Precipitable
408
+ Water." IEEE Photovoltaic Specialists Conference, Portland, 2016
409
409
.. [3] Marion, William F., et al. User's Manual for Data for Validating
410
410
Models for PV Module Performance. National Renewable Energy
411
411
Laboratory, 2014. http://www.nrel.gov/docs/fy14osti/61610.pdf
@@ -419,30 +419,29 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
419
419
420
420
if np .min (pw ) < 0.1 :
421
421
pw = np .maximum (pw , 0.1 )
422
- warn ('Exceptionally low Pwat values replaced with 0.1 cm to prevent' +
423
- ' model divergence' )
422
+ warn ('Exceptionally low Pwat values replaced with 0.1 cm to prevent' +
423
+ ' model divergence' )
424
424
425
425
426
426
# Warn user about Pwat data that is exceptionally high
427
427
if np .max (pw ) > 8 :
428
428
warn ('Exceptionally high Pwat values. Check input data:' +
429
- ' model may diverge in this range' )
429
+ ' model may diverge in this range' )
430
430
431
431
432
432
# *** AMa ***
433
433
# Replace Extremely High AM with AM 10 to prevent model divergence
434
434
# AM > 10 will only occur very close to sunset
435
- if np .max (airmass_absolute ) > 10 :
436
- airmass_absolute = np .minimum (airmass_absolute ,10 )
437
-
435
+ if np .max (airmass_absolute ) > 10 :
436
+ airmass_absolute = np .minimum (airmass_absolute , 10 )
437
+
438
438
# Warn user about AMa data that is exceptionally low
439
439
if np .min (airmass_absolute ) < 0.58 :
440
440
warn ('Exceptionally low air mass: ' +
441
- 'model not intended for extra-terrestrial use' )
442
- # pvl_absoluteairmass(1,pvl_alt2pres(4340)) = 0.58
443
- # Elevation of Mina Pirquita, Argentian = 4340 m. Highest elevation city
444
- # with population over 50,000.
445
-
441
+ 'model not intended for extra-terrestrial use' )
442
+ # pvl_absoluteairmass(1,pvl_alt2pres(4340)) = 0.58 Elevation of
443
+ # Mina Pirquita, Argentian = 4340 m. Highest elevation city with
444
+ # population over 50,000.
446
445
447
446
_coefficients = {}
448
447
_coefficients ['cdte' ] = (
@@ -464,9 +463,9 @@ def first_solar_spectral_correction(pw, airmass_absolute, module_type=None,
464
463
465
464
# Evaluate Spectral Shift
466
465
coeff = coefficients
467
- AMa = airmass_absolute
466
+ ama = airmass_absolute
468
467
modifier = (
469
- coeff [0 ] + coeff [1 ]* AMa + coeff [2 ]* pw + coeff [3 ]* np .sqrt (AMa ) +
470
- + coeff [4 ]* np .sqrt (pw ) + coeff [5 ]* AMa / np .sqrt (pw ))
468
+ coeff [0 ] + coeff [1 ]* ama + coeff [2 ]* pw + coeff [3 ]* np .sqrt (ama ) +
469
+ coeff [4 ]* np .sqrt (pw ) + coeff [5 ]* ama / np .sqrt (pw ))
471
470
472
471
return modifier
0 commit comments