Skip to content

Commit ae3fcff

Browse files
committed
add reference
1 parent 0deb93f commit ae3fcff

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

pvlib/atmosphere.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
153153
requires true sun zenith
154154
* 'kastenyoung1989' (default) - See reference [3] -
155155
requires apparent sun zenith
156-
* 'gueymard1993' - See reference [4] -
156+
* 'gueymard1993' - See references [4] and [9] -
157157
requires apparent sun zenith
158158
* 'young1994' - See reference [5] -
159159
requires true sun zenith
@@ -174,6 +174,8 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
174174
other models use true (not refraction-adjusted) zenith angle. Apparent
175175
zenith angles should be calculated at sea level.
176176
177+
Comparison among several models is reported in [10].
178+
177179
References
178180
----------
179181
.. [1] Fritz Kasten. "A New Table and Approximation Formula for the
@@ -206,9 +208,14 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
206208
Mapping. Green Energy and Technology. Springer, Cham.
207209
:doi:`10.1007/978-3-319-97484-2_5`
208210
209-
.. [9] Matthew J. Reno, Clifford W. Hansen and Joshua S. Stein, "Global
211+
.. [9] C. Gueymard, "Development and performance assessment of a clear
212+
sky spectral radiation model,” in Proc. of the 22nd ASES Conference,
213+
Solar ’93, 1993, pp. 433–438.
214+
215+
.. [10] Matthew J. Reno, Clifford W. Hansen and Joshua S. Stein, "Global
210216
Horizontal Irradiance Clear Sky Models: Implementation and Analysis"
211217
Sandia Report, (2012).
218+
212219
'''
213220

214221
# set zenith values greater than 90 to nans
@@ -236,7 +243,7 @@ def get_relative_airmass(zenith, model='kastenyoung1989'):
236243
(np.cos(zenith_rad) ** 3 +
237244
0.149864*(np.cos(zenith_rad) ** 2) +
238245
0.0102963*(np.cos(zenith_rad)) + 0.000303978))
239-
elif 'gueymard1993' == model:
246+
elif 'gueymard1993' == model: # [4], Eq. 22 and [9], Eq. 3b
240247
am = (1.0 / (np.cos(zenith_rad) +
241248
0.00176759*(z)*((94.37515 - z) ** - 1.21563)))
242249
elif 'gueymard2003' == model:

0 commit comments

Comments
 (0)