@@ -470,61 +470,6 @@ def calcparams_desoto(S, Tcell, alpha_isc, ModuleParameters, EgRef, dEgdT,
470
470
return IL ,I0 ,Rs ,Rsh ,nNsVth
471
471
472
472
473
- def getaoi (SurfTilt ,SurfAz ,SunZen ,SunAz ):
474
- '''
475
- Determine angle of incidence from surface tilt/azimuth and apparent sun zenith/azimuth
476
-
477
- The surface is defined by its tilt angle from horizontal and its azimuth pointing angle.
478
- The sun position is defined by the apparent (refraction corrected)sun zenith angle and the sun
479
- azimuth angle.
480
-
481
- Parameters
482
- ----------
483
- SurfTilt : scalar or DataFrame of surface tilt angles in decimal degrees
484
-
485
- If SurfTilt is a DataFrame it must be of the same size as all other DataFrame
486
- inputs. SurfTilt must be >=0 and <=180. The tilt angle is defined as
487
- degrees from horizontal (e.g. surface facing up = 0, surface facing
488
- horizon = 90)
489
-
490
- SurfAz : scalar or DataFrame of the surface azimuth angles in decimal degrees
491
-
492
- If SurfAz is a DataFrame it must be of the same size as all other DataFrame
493
- inputs. SurfAz must be >=0 and <=360. The Azimuth convention is defined
494
- as degrees east of north (e.g. North = 0, East = 90, West = 270).
495
-
496
- SunZen : scalar or DataFrame of apparent (refraction-corrected) zenith angles in decimal degrees.
497
-
498
- If SunZen is a DataFrame it must be of the same size as all other DataFrame
499
- inputs. SunZen must be >=0 and <=180.
500
-
501
- SunAz : scalar or DataFrame of sun azimuth angles in decimal degrees
502
-
503
- If SunAz is a DataFrame it must be of the same size as all other DataFrame
504
- inputs. SunAz must be >=0 and <=360. The Azimuth convention is defined
505
- as degrees east of north (e.g. North = 0, East = 90, West = 270).
506
-
507
- Returns
508
- -------
509
- AOI : DataFrame
510
- The angle, in decimal degrees, between the surface normal DataFrame and the sun beam DataFrame.
511
-
512
- References
513
- ----------
514
- D.L. King, J.A. Kratochvil, W.E. Boyson. "Spectral and
515
- Angle-of-Incidence Effects on Photovoltaic Modules and Solar Irradiance
516
- Sensors". 26th IEEE Photovoltaic Specialists Conference. Sept. 1997.
517
-
518
- See Also
519
- --------
520
- PVL_EPHEMERIS
521
- '''
522
-
523
-
524
- AOI = np .degrees (np .arccos (np .cos (np .radians (SunZen ))* (np .cos (np .radians (SurfTilt ))) + np .sin (np .radians (SurfTilt ))* (np .sin (np .radians (SunZen )))* (np .cos (np .radians (SunAz ) - np .radians (SurfAz ))))) #Duffie and Beckmann 1.6.3
525
-
526
-
527
- return pd .DataFrame ({'AOI' :AOI })
528
473
529
474
def retreiveSAM (name ,FileLoc = 'none' ):
530
475
'''
0 commit comments