Skip to content

Commit ab3ab81

Browse files
author
bmu
committed
substituted tabs with spaces to remove sphinx warnings for pvl_clearsky_haurwitz.py
1 parent 4a04e70 commit ab3ab81

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

pvlib/pvl_clearsky_haurwitz.py

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,61 @@
22
import numpy as np
33
import pvl_tools
44

5+
56
def pvl_clearsky_haurwitz(ApparentZenith):
6-
'''
7-
Determine clear sky GHI from Haurwitz model
8-
7+
'''
8+
Determine clear sky GHI from Haurwitz model
9+
10+
11+
Implements the Haurwitz clear sky model for global horizontal
12+
irradiance (GHI) as presented in [1, 2]. A report on clear
13+
sky models found the Haurwitz model to have the best performance of
14+
models which require only zenith angle [3].
915
10-
Implements the Haurwitz clear sky model for global horizontal
11-
irradiance (GHI) as presented in [1, 2]. A report on clear
12-
sky models found the Haurwitz model to have the best performance of
13-
models which require only zenith angle [3].
16+
Parameters
17+
----------
18+
ApparentZenith : DataFrame
1419
15-
Parameters
16-
----------
17-
ApparentZenith : DataFrame
20+
The apparent (refraction corrected) sun zenith angle in degrees.
1821
19-
The apparent (refraction corrected) sun zenith angle
20-
in degrees.
22+
Returns
23+
-------
24+
ClearSkyGHI : DataFrame
2125
22-
Returns
23-
-------
24-
ClearSkyGHI : DataFrame
25-
26-
the modeled global horizonal irradiance in W/m^2 provided
27-
by the Haurwitz clear-sky model.
26+
the modeled global horizonal irradiance in W/m^2 provided
27+
by the Haurwitz clear-sky model.
2828
29-
Initial implementation of this algorithm by Matthew Reno.
29+
Initial implementation of this algorithm by Matthew Reno.
3030
31-
References
32-
----------
31+
References
32+
----------
3333
34-
[1] B. Haurwitz, "Insolation in Relation to Cloudiness and Cloud
35-
Density," Journal of Meteorology, vol. 2, pp. 154-166, 1945.
34+
[1] B. Haurwitz, "Insolation in Relation to Cloudiness and Cloud
35+
Density," Journal of Meteorology, vol. 2, pp. 154-166, 1945.
3636
37-
[2] B. Haurwitz, "Insolation in Relation to Cloud Type," Journal of
38-
Meteorology, vol. 3, pp. 123-124, 1946.
37+
[2] B. Haurwitz, "Insolation in Relation to Cloud Type," Journal of
38+
Meteorology, vol. 3, pp. 123-124, 1946.
3939
40-
[3] M. Reno, C. Hansen, and J. Stein, "Global Horizontal Irradiance Clear
41-
Sky Models: Implementation and Analysis", Sandia National
42-
Laboratories, SAND2012-2389, 2012.
40+
[3] M. Reno, C. Hansen, and J. Stein, "Global Horizontal Irradiance Clear
41+
Sky Models: Implementation and Analysis", Sandia National
42+
Laboratories, SAND2012-2389, 2012.
4343
44-
See Also
45-
---------
46-
pvl_maketimestruct
47-
pvl_makelocationstruct
48-
pvl_ephemeris
49-
pvl_spa
50-
pvl_ineichen
51-
'''
44+
See Also
45+
---------
46+
pvl_maketimestruct
47+
pvl_makelocationstruct
48+
pvl_ephemeris
49+
pvl_spa
50+
pvl_ineichen
51+
'''
5252

53-
Vars=locals()
53+
Vars=locals()
5454

55-
Expect={'ApparentZenith':('x<=180','x>=0')}
56-
var=pvl_tools.Parse(Vars,Expect)
55+
Expect={'ApparentZenith':('x<=180','x>=0')}
56+
var=pvl_tools.Parse(Vars,Expect)
5757

58-
ClearSkyGHI=1098.0 * pvl_tools.cosd(ApparentZenith)*(np.exp(- 0.059 / pvl_tools.cosd(ApparentZenith)))
58+
ClearSkyGHI=1098.0 * pvl_tools.cosd(ApparentZenith)*(np.exp(- 0.059 / pvl_tools.cosd(ApparentZenith)))
5959

60-
ClearSkyGHI[ClearSkyGHI < 0]=0
60+
ClearSkyGHI[ClearSkyGHI < 0]=0
6161

62-
return ClearSkyGHI
62+
return ClearSkyGHI

0 commit comments

Comments
 (0)