File tree 1 file changed +0
-21
lines changed
1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 3
3
global horizontal irradiance, direct normal irradiance,
4
4
diffuse horizontal irradiance, and total irradiance
5
5
under various conditions.
6
-
7
- Extraterrestrial radiation can be modeled using :func:`extraradiation`.
8
-
9
- .. ipython:: python
10
-
11
- import numpy as np
12
- import pandas as pd
13
- import matplotlib.pyplot as plt
14
- import pvlib
15
-
16
- times = pd.date_range('2014-01-01', '2015-01-01', freq='1D')
17
- spencer = pd.Series(pvlib.irradiance.extraradiation(times, method='spencer'), times)
18
- asce = pd.Series(pvlib.irradiance.extraradiation(times, method='asce'), times)
19
- ephem = pvlib.irradiance.extraradiation(times, method='pyephem') # approx 100x slower than the above.
20
- spencer.plot(label='spencer')
21
- asce.plot(label='asce')
22
- ephem.plot(label='pyephem')
23
- plt.legend()
24
- @savefig extraradiation.png width=4in
25
- plt.ylabel('Extraterrestrial radiation (W/m^2)')
26
-
27
6
"""
28
7
29
8
from __future__ import division
You can’t perform that action at this time.
0 commit comments