|
2 | 2 | import numpy as np |
3 | 3 | import pvl_tools |
4 | 4 |
|
| 5 | + |
5 | 6 | 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]. |
9 | 15 |
|
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 |
14 | 19 |
|
15 | | - Parameters |
16 | | - ---------- |
17 | | - ApparentZenith : DataFrame |
| 20 | + The apparent (refraction corrected) sun zenith angle in degrees. |
18 | 21 |
|
19 | | - The apparent (refraction corrected) sun zenith angle |
20 | | - in degrees. |
| 22 | + Returns |
| 23 | + ------- |
| 24 | + ClearSkyGHI : DataFrame |
21 | 25 |
|
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. |
28 | 28 |
|
29 | | - Initial implementation of this algorithm by Matthew Reno. |
| 29 | + Initial implementation of this algorithm by Matthew Reno. |
30 | 30 |
|
31 | | - References |
32 | | - ---------- |
| 31 | + References |
| 32 | + ---------- |
33 | 33 |
|
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. |
36 | 36 |
|
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. |
39 | 39 |
|
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. |
43 | 43 |
|
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 | + ''' |
52 | 52 |
|
53 | | - Vars=locals() |
| 53 | + Vars=locals() |
54 | 54 |
|
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) |
57 | 57 |
|
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))) |
59 | 59 |
|
60 | | - ClearSkyGHI[ClearSkyGHI < 0]=0 |
| 60 | + ClearSkyGHI[ClearSkyGHI < 0]=0 |
61 | 61 |
|
62 | | - return ClearSkyGHI |
| 62 | + return ClearSkyGHI |
0 commit comments